Обновление

This commit is contained in:
cfif 2025-10-17 13:26:07 +03:00
parent f18f70a263
commit 8d562757a3
1 changed files with 3 additions and 2 deletions

5
Adcs.c
View File

@ -48,7 +48,8 @@ void Adcs_Init() {
tInitStruct.ePullSel = PORT_PULL_UP;
PORT_InitPins(PORT_D, &tInitStruct);
env->vcc = ADC_Initial(
ADC_Initial(
&env->vcc,
ADC_INSTANCE_0, // ADC_INSTANCE_0, ADC_INSTANCE_1
DMA_CHANNEL_3, // DMA_CHANNEL_0 .. DMA_CHANNEL_15
@ -60,7 +61,7 @@ void Adcs_Init() {
s_aAdc0ResultBuf,
ADC0_CHN_NUM_EN,
(ADC_ChannelCfgType *)s_aChannels,
(ADC_ChannelCfgType *) s_aChannels,
0,
0,