aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32F1xx/ADC/main.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-11-16 18:58:09 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-11-16 18:58:09 +0000
commit759a95a23a2e41651f46d25dfdface09525760d1 (patch)
treee88e42c816c5d17da7773ae168cf83e155efcfc2 /testhal/STM32F1xx/ADC/main.c
parentcef04f5f4b8ea66ad3ab5a628a4aad8da509039e (diff)
downloadChibiOS-759a95a23a2e41651f46d25dfdface09525760d1.tar.gz
ChibiOS-759a95a23a2e41651f46d25dfdface09525760d1.tar.bz2
ChibiOS-759a95a23a2e41651f46d25dfdface09525760d1.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3501 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32F1xx/ADC/main.c')
-rw-r--r--testhal/STM32F1xx/ADC/main.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/testhal/STM32F1xx/ADC/main.c b/testhal/STM32F1xx/ADC/main.c
index 9cc316fa8..bfe8997f9 100644
--- a/testhal/STM32F1xx/ADC/main.c
+++ b/testhal/STM32F1xx/ADC/main.c
@@ -53,8 +53,8 @@ static void adcerrorcallback(ADCDriver *adcp, adcerror_t err) {
/*
* ADC conversion group.
- * Mode: Linear buffer, 16 samples of 8 channels, SW triggered.
- * Channels: IN10, IN11, IN10, IN11, IN10, IN11, Sensor, VRef.
+ * Mode: Linear buffer, 8 samples of 1 channel, SW triggered.
+ * Channels: IN10.
*/
static const ADCConversionGroup adcgrpcfg1 = {
FALSE,
@@ -80,9 +80,8 @@ static const ADCConversionGroup adcgrpcfg2 = {
adccallback,
adcerrorcallback,
0, ADC_CR2_TSVREFE, /* CR1, CR2 */
- ADC_SMPR1_SMP_AN10(ADC_SAMPLE_41P5) |
- ADC_SMPR1_SMP_SENSOR(ADC_SAMPLE_239P5) |
- ADC_SMPR1_SMP_VREF(ADC_SAMPLE_239P5),
+ ADC_SMPR1_SMP_AN11(ADC_SAMPLE_41P5) | ADC_SMPR1_SMP_AN10(ADC_SAMPLE_41P5) |
+ ADC_SMPR1_SMP_SENSOR(ADC_SAMPLE_239P5) | ADC_SMPR1_SMP_VREF(ADC_SAMPLE_239P5),
0, /* SMPR2 */
ADC_SQR1_NUM_CH(ADC_GRP2_NUM_CHANNELS),
ADC_SQR2_SQ8_N(ADC_CHANNEL_SENSOR) | ADC_SQR2_SQ7_N(ADC_CHANNEL_VREFINT),