From 8d562757a32acaa54348d63a2c01e427a669412c Mon Sep 17 00:00:00 2001 From: cfif Date: Fri, 17 Oct 2025 13:26:07 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Adcs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Adcs.c b/Adcs.c index 4555de2..8ca7a0c 100644 --- a/Adcs.c +++ b/Adcs.c @@ -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,