diff options
Diffstat (limited to 'testhal/STM32F0xx/ADC/main.c')
-rw-r--r-- | testhal/STM32F0xx/ADC/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/testhal/STM32F0xx/ADC/main.c b/testhal/STM32F0xx/ADC/main.c index 6038a2fb2..bdb8bed0f 100644 --- a/testhal/STM32F0xx/ADC/main.c +++ b/testhal/STM32F0xx/ADC/main.c @@ -61,9 +61,10 @@ static const ADCConversionGroup adcgrpcfg1 = { ADC_GRP1_NUM_CHANNELS,
NULL,
adcerrorcallback,
- ADC_CFGR1_RES_12BIT, /* CFGRR1 */
- ADC_SMPR_SMP_1P5, /* SMPR */
- ADC_CHSELR_CHSEL10 /* CHSELR */
+ ADC_CFGR1_RES_12BIT, /* CFGRR1 */
+ ADC_TR(0, 0), /* TR */
+ ADC_SMPR_SMP_1P5, /* SMPR */
+ ADC_CHSELR_CHSEL10 /* CHSELR */
};
/*
@@ -77,6 +78,7 @@ static const ADCConversionGroup adcgrpcfg2 = { adccallback,
adcerrorcallback,
ADC_CFGR1_RES_12BIT, /* CFGRR1 */
+ ADC_TR(0, 0), /* TR */
ADC_SMPR_SMP_28P5, /* SMPR */
ADC_CHSELR_CHSEL10 | ADC_CHSELR_CHSEL11 |
ADC_CHSELR_CHSEL16 | ADC_CHSELR_CHSEL17 /* CHSELR */
|