diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2019-02-10 17:34:38 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2019-02-10 17:34:38 +0000 |
commit | 14eea36396e50de3f4f54a53862b130162449821 (patch) | |
tree | b7f389043b59faf9dc7dbaf5723c15f56cb1fe82 | |
parent | db3058ecfcefb57e487c647b0c34cebc945e3f46 (diff) | |
download | ChibiOS-14eea36396e50de3f4f54a53862b130162449821.tar.gz ChibiOS-14eea36396e50de3f4f54a53862b130162449821.tar.bz2 ChibiOS-14eea36396e50de3f4f54a53862b130162449821.zip |
Missing initialization.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_19.1.x@12656 110e8d01-0319-4d1e-a829-52ad28d1bb01
-rw-r--r-- | demos/STM32/RT-STM32F303-DISCOVERY/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/STM32/RT-STM32F303-DISCOVERY/main.c b/demos/STM32/RT-STM32F303-DISCOVERY/main.c index 1231cd275..e3f251789 100644 --- a/demos/STM32/RT-STM32F303-DISCOVERY/main.c +++ b/demos/STM32/RT-STM32F303-DISCOVERY/main.c @@ -81,6 +81,8 @@ int main(void) { * Activates the serial driver 1 using the driver default configuration.
*/
sdStart(&SD1, NULL);
+ palSetPadMode(GPIOA, 9, PAL_MODE_ALTERNATE(7)); /* USART1 TX. */
+ palSetPadMode(GPIOA, 10, PAL_MODE_ALTERNATE(7)); /* USART1 RX. */
/*
* Creates the example threads.
|