diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-05-28 19:46:14 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-05-28 19:46:14 +0000 |
commit | 90969496d306b28d0869b8a9cc374295c6e55bb3 (patch) | |
tree | 4e35ccae876c11b860c8907024f4d61cc0f09c4e /testhal/STM32F0xx | |
parent | c0cbc2411e6a7d347be5d20cffcca8d703bf6324 (diff) | |
download | ChibiOS-90969496d306b28d0869b8a9cc374295c6e55bb3.tar.gz ChibiOS-90969496d306b28d0869b8a9cc374295c6e55bb3.tar.bz2 ChibiOS-90969496d306b28d0869b8a9cc374295c6e55bb3.zip |
Analog watchdog support for F0 ADC driver (experimental).
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4245 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32F0xx')
-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 */
|