From a7ef91f1f5f73ff10fe11d53f76ac71783c3a3ec Mon Sep 17 00:00:00 2001 From: ThinkPad-T460P Date: Wed, 6 Jan 2021 12:26:39 +0800 Subject: [PATCH] enable ADC continuous conv mode --- Core/Src/adc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Src/adc.c b/Core/Src/adc.c index a8fafab..354009e 100644 --- a/Core/Src/adc.c +++ b/Core/Src/adc.c @@ -6,7 +6,7 @@ ****************************************************************************** * @attention * - *

© Copyright (c) 2020 STMicroelectronics. + *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license @@ -40,7 +40,7 @@ void MX_ADC1_Init(void) */ hadc1.Instance = ADC1; hadc1.Init.ScanConvMode = ADC_SCAN_ENABLE; - hadc1.Init.ContinuousConvMode = DISABLE; + hadc1.Init.ContinuousConvMode = ENABLE; hadc1.Init.DiscontinuousConvMode = DISABLE; hadc1.Init.ExternalTrigConv = ADC_SOFTWARE_START; hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT;