aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32L4xx/GPT-ADC/main.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-02-28 09:03:32 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-02-28 09:03:32 +0000
commit98ef475714df436553966f278e472b8e593401c5 (patch)
treeb373b4e14ac2d490f458cba4e4c8f356760baaa0 /testhal/STM32/STM32L4xx/GPT-ADC/main.c
parent18543d21c71037cf9ff3f16bf25d5ca425939914 (diff)
downloadChibiOS-98ef475714df436553966f278e472b8e593401c5.tar.gz
ChibiOS-98ef475714df436553966f278e472b8e593401c5.tar.bz2
ChibiOS-98ef475714df436553966f278e472b8e593401c5.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8979 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32L4xx/GPT-ADC/main.c')
-rw-r--r--testhal/STM32/STM32L4xx/GPT-ADC/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32/STM32L4xx/GPT-ADC/main.c b/testhal/STM32/STM32L4xx/GPT-ADC/main.c
index 93d4bcff6..790fc50f5 100644
--- a/testhal/STM32/STM32L4xx/GPT-ADC/main.c
+++ b/testhal/STM32/STM32L4xx/GPT-ADC/main.c
@@ -81,10 +81,10 @@ static const ADCConversionGroup adcgrpcfg1 = {
ADC_TR(0, 4095), /* TR1 */
{ /* SMPR[2] */
ADC_SMPR1_SMP_AN0(ADC_SMPR_SMP_247P5),
- ADC_SMPR2_SMP_AN11(ADC_SMPR_SMP_247P5)
+ ADC_SMPR1_SMP_AN2(ADC_SMPR_SMP_247P5)
},
{ /* SQR[4] */
- ADC_SQR1_SQ1_N(ADC_CHANNEL_IN0) | ADC_SQR1_SQ2_N(ADC_CHANNEL_IN11),
+ ADC_SQR1_SQ1_N(ADC_CHANNEL_IN0) | ADC_SQR1_SQ2_N(ADC_CHANNEL_IN2),
0,
0,
0