From 1f8a2b96534233a822d9f870184b4738f67198fa Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 15 Sep 2018 07:35:43 +0000 Subject: Correct serial port. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12256 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- demos/STM32/RT-STM32L4R5ZI-NUCLEO144/cfg/mcuconf.h | 4 ++-- .../RT-STM32L4R5ZI-NUCLEO144 (OpenOCD, Flash and Run).launch | 8 ++++---- demos/STM32/RT-STM32L4R5ZI-NUCLEO144/main.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'demos') diff --git a/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/cfg/mcuconf.h b/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/cfg/mcuconf.h index 432f9f95b..291c4e2ad 100644 --- a/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/cfg/mcuconf.h +++ b/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/cfg/mcuconf.h @@ -91,8 +91,8 @@ */ #define STM32_SERIAL_USE_USART1 FALSE #define STM32_SERIAL_USE_USART2 FALSE -#define STM32_SERIAL_USE_USART3 TRUE -#define STM32_SERIAL_USE_LPUART1 FALSE +#define STM32_SERIAL_USE_USART3 FALSE +#define STM32_SERIAL_USE_LPUART1 TRUE #define STM32_SERIAL_USART1_PRIORITY 12 #define STM32_SERIAL_USART2_PRIORITY 12 #define STM32_SERIAL_USART3_PRIORITY 12 diff --git a/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/debug/RT-STM32L4R5ZI-NUCLEO144 (OpenOCD, Flash and Run).launch b/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/debug/RT-STM32L4R5ZI-NUCLEO144 (OpenOCD, Flash and Run).launch index 2a6c6f6f5..c9b1eb6f5 100644 --- a/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/debug/RT-STM32L4R5ZI-NUCLEO144 (OpenOCD, Flash and Run).launch +++ b/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/debug/RT-STM32L4R5ZI-NUCLEO144 (OpenOCD, Flash and Run).launch @@ -6,17 +6,17 @@ - + - + - - + + diff --git a/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/main.c b/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/main.c index 33e022883..2e07a74be 100644 --- a/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/main.c +++ b/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/main.c @@ -62,7 +62,7 @@ int main(void) { /* * Activates the serial driver 3 using the driver default configuration. */ - sdStart(&SD3, NULL); + sdStart(&LPSD1, NULL); /* * Creates the example thread. @@ -75,8 +75,8 @@ int main(void) { */ while (true) { if (palReadLine(LINE_BUTTON)) { - test_execute((BaseSequentialStream *)&SD3, &rt_test_suite); - test_execute((BaseSequentialStream *)&SD3, &oslib_test_suite); + test_execute((BaseSequentialStream *)&LPSD1, &rt_test_suite); + test_execute((BaseSequentialStream *)&LPSD1, &oslib_test_suite); } chThdSleepMilliseconds(500); } -- cgit v1.2.3