aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F3xx/ADC_DUAL/main.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-12-14 14:38:16 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-12-14 14:38:16 +0000
commit53a30f78fe3e5ebebc379f1f3ab0ef92448ac349 (patch)
tree13561be8c59df4b2a6b04ba0f3e57b67fe43d58a /testhal/STM32/STM32F3xx/ADC_DUAL/main.c
parentd0487d83cf9d96baae56c100ee5f930367756a32 (diff)
downloadChibiOS-53a30f78fe3e5ebebc379f1f3ab0ef92448ac349.tar.gz
ChibiOS-53a30f78fe3e5ebebc379f1f3ab0ef92448ac349.tar.bz2
ChibiOS-53a30f78fe3e5ebebc379f1f3ab0ef92448ac349.zip
STM32F3 now uses the shared ADCv3 driver. There are differences in the configuration structure.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8599 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F3xx/ADC_DUAL/main.c')
-rw-r--r--testhal/STM32/STM32F3xx/ADC_DUAL/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32/STM32F3xx/ADC_DUAL/main.c b/testhal/STM32/STM32F3xx/ADC_DUAL/main.c
index b77e267b2..ee0ca1263 100644
--- a/testhal/STM32/STM32F3xx/ADC_DUAL/main.c
+++ b/testhal/STM32/STM32F3xx/ADC_DUAL/main.c
@@ -59,7 +59,7 @@ static const ADCConversionGroup adcgrpcfg1 = {
adcerrorcallback,
ADC_CFGR_CONT, /* CFGR */
ADC_TR(0, 4095), /* TR1 */
- ADC_CCR_DUAL(1), /* CCR */
+ ADC_CCR_DUAL_FIELD(1), /* CCR */
{ /* SMPR[2] */
0,
0
@@ -94,7 +94,7 @@ static const ADCConversionGroup adcgrpcfg2 = {
adcerrorcallback,
ADC_CFGR_CONT, /* CFGR */
ADC_TR(0, 4095), /* TR1 */
- ADC_CCR_DUAL(1) | ADC_CCR_TSEN | ADC_CCR_VBATEN, /* CCR */
+ ADC_CCR_DUAL_FIELD(1) | ADC_CCR_TSEN | ADC_CCR_VBATEN, /* CCR */
{ /* SMPR[2] */
ADC_SMPR1_SMP_AN7(ADC_SMPR_SMP_19P5)
| ADC_SMPR1_SMP_AN8(ADC_SMPR_SMP_19P5),