From de50271e0027961d804d495c3dea2502774a0b34 Mon Sep 17 00:00:00 2001 From: cfif Date: Tue, 12 May 2026 14:14:57 +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=20=D0=BF=D0=BB=D0=B0=D1=82=D1=8B=20=D0=BD?= =?UTF-8?q?=D0=B0=20V2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Adcs.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Adcs.c b/Adcs.c index 4b42235..80add2a 100644 --- a/Adcs.c +++ b/Adcs.c @@ -184,7 +184,7 @@ static const ADC_ChannelCfgType s_aChannelsAdc0[ADC0_CHN_NUM_EN] = }; -#define ADC1_CHN_NUM_EN 16 +#define ADC1_CHN_NUM_EN 17 static uint32_t s_aAdc1ResultBuf[ADC1_CHN_NUM_EN] = {0U}; static const ADC_ChannelCfgType s_aChannelsAdc1[ADC1_CHN_NUM_EN] = { @@ -273,7 +273,12 @@ static const ADC_ChannelCfgType s_aChannelsAdc1[ADC1_CHN_NUM_EN] = { .eChannel = ADC_CHANNEL_30, //PA0: Sensor_B_T_reserve .eSampleTimeOption = ADC_SAMPLE_TIME_OPTION_3 - } + }, + + { + .eChannel = ADC1_CHANNEL_VREFH, + .eSampleTimeOption = ADC_SAMPLE_TIME_OPTION_0 + }, };