We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbc7355 commit 76d488dCopy full SHA for 76d488d
targets/TARGET_STM/TARGET_STM32G4/analogin_device.c
@@ -199,15 +199,11 @@ uint16_t adc_read(analogin_t *obj)
199
200
// Configure ADC channel
201
sConfig.Rank = ADC_REGULAR_RANK_1;
202
- sConfig.SamplingTime = ADC_SAMPLETIME_24CYCLES_5;
+ sConfig.SamplingTime = ADC_SAMPLETIME_247CYCLES_5;
203
sConfig.SingleDiff = ADC_SINGLE_ENDED;
204
sConfig.OffsetNumber = ADC_OFFSET_NONE;
205
sConfig.Offset = 0;
206
207
- /**
208
- * TODO - what about internal channels? VBAT, VREF, Temperature?
209
- * TODO - what about internal OP AMP channels?
210
- */
211
switch (obj->channel) {
212
case 1:
213
sConfig.Channel = ADC_CHANNEL_1;
0 commit comments