aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F7xx
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-08-26 08:41:04 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-08-26 08:41:04 +0000
commit3262155f7d3afa5f69ae98b4744018dec03484eb (patch)
treec9445b08e3f734f150b0120c7c2e0616b135090b /testhal/STM32/STM32F7xx
parent5c969f63735eae2c813969bf41ee062c47b1da1b (diff)
downloadChibiOS-3262155f7d3afa5f69ae98b4744018dec03484eb.tar.gz
ChibiOS-3262155f7d3afa5f69ae98b4744018dec03484eb.tar.bz2
ChibiOS-3262155f7d3afa5f69ae98b4744018dec03484eb.zip
Added automatic number of channels initialization for ADCv2.
Implemented IRQ hooks for ADC drivers. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9741 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F7xx')
-rw-r--r--testhal/STM32/STM32F7xx/GPT-ADC/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testhal/STM32/STM32F7xx/GPT-ADC/main.c b/testhal/STM32/STM32F7xx/GPT-ADC/main.c
index b7a505152..9c36e18e4 100644
--- a/testhal/STM32/STM32F7xx/GPT-ADC/main.c
+++ b/testhal/STM32/STM32F7xx/GPT-ADC/main.c
@@ -103,7 +103,7 @@ static const ADCConversionGroup adcgrpcfg1 = {
ADC_SMPR1_SMP_SENSOR(ADC_SAMPLE_144) |
ADC_SMPR1_SMP_VREF(ADC_SAMPLE_144), /* SMPR1 */
0, /* SMPR2 */
- ADC_SQR1_NUM_CH(ADC_GRP1_NUM_CHANNELS), /* SQR1 */
+ 0, /* SQR1 */
0, /* SQR2 */
ADC_SQR3_SQ2_N(ADC_CHANNEL_SENSOR) |
ADC_SQR3_SQ1_N(ADC_CHANNEL_VREFINT) /* SQR3 */