diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-12-10 14:34:42 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-12-10 14:34:42 +0000 |
commit | c22bbe5104ebe05820dfbeb40b128596300bbbfc (patch) | |
tree | a82a4fe52e119251ea660dbc865d1d0bf26ed17b /testhal/STM32 | |
parent | f33a1bf19353699427726edc6004454484ca7b70 (diff) | |
download | ChibiOS-c22bbe5104ebe05820dfbeb40b128596300bbbfc.tar.gz ChibiOS-c22bbe5104ebe05820dfbeb40b128596300bbbfc.tar.bz2 ChibiOS-c22bbe5104ebe05820dfbeb40b128596300bbbfc.zip |
More ADCv3 work.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8576 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32')
-rw-r--r-- | testhal/STM32/STM32L4xx/GPT-ADC/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/testhal/STM32/STM32L4xx/GPT-ADC/main.c b/testhal/STM32/STM32L4xx/GPT-ADC/main.c index 06fc68a26..42e06df82 100644 --- a/testhal/STM32/STM32L4xx/GPT-ADC/main.c +++ b/testhal/STM32/STM32L4xx/GPT-ADC/main.c @@ -145,9 +145,9 @@ int main(void) { chSysInit();
/*
- * Activates the serial driver 1 using the driver default configuration.
+ * Activates the serial driver 2 using the driver default configuration.
*/
- sdStart(&SD1, NULL);
+ sdStart(&SD2, NULL);
/*
* Starting GPT4 driver, it is used for triggering the ADC.
@@ -164,7 +164,8 @@ int main(void) { * Activates the ADC1 driver and the temperature sensor.
*/
adcStart(&ADCD1, NULL);
- adcSTM32EnableTSVREFE();
+ adcSTM32EnableVREF();
+ adcSTM32EnableTS();
/*
* Starts an ADC continuous conversion triggered with a period of
|