From 76d488ded1b629ea20b09675ecf15ecb138d321b Mon Sep 17 00:00:00 2001 From: George Beckstein Date: Tue, 22 Sep 2020 09:32:14 -0400 Subject: [PATCH] Revert sampling time decrease and remove todos. --- targets/TARGET_STM/TARGET_STM32G4/analogin_device.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/targets/TARGET_STM/TARGET_STM32G4/analogin_device.c b/targets/TARGET_STM/TARGET_STM32G4/analogin_device.c index 0c4b69ab4c..f8f1fab36e 100644 --- a/targets/TARGET_STM/TARGET_STM32G4/analogin_device.c +++ b/targets/TARGET_STM/TARGET_STM32G4/analogin_device.c @@ -199,15 +199,11 @@ uint16_t adc_read(analogin_t *obj) // Configure ADC channel sConfig.Rank = ADC_REGULAR_RANK_1; - sConfig.SamplingTime = ADC_SAMPLETIME_24CYCLES_5; + sConfig.SamplingTime = ADC_SAMPLETIME_247CYCLES_5; sConfig.SingleDiff = ADC_SINGLE_ENDED; sConfig.OffsetNumber = ADC_OFFSET_NONE; sConfig.Offset = 0; - /** - * TODO - what about internal channels? VBAT, VREF, Temperature? - * TODO - what about internal OP AMP channels? - */ switch (obj->channel) { case 1: sConfig.Channel = ADC_CHANNEL_1;