From c22bbe5104ebe05820dfbeb40b128596300bbbfc Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Thu, 10 Dec 2015 14:34:42 +0000 Subject: More ADCv3 work. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8576 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32/STM32L4xx/GPT-ADC/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'testhal/STM32/STM32L4xx/GPT-ADC') 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 -- cgit v1.2.3