aboutsummaryrefslogtreecommitdiffstats
path: root/demos/STM32/RT-STM32F303-DISCOVERY/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/STM32/RT-STM32F303-DISCOVERY/main.c')
-rw-r--r--demos/STM32/RT-STM32F303-DISCOVERY/main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/demos/STM32/RT-STM32F303-DISCOVERY/main.c b/demos/STM32/RT-STM32F303-DISCOVERY/main.c
index 00d870219..e3f251789 100644
--- a/demos/STM32/RT-STM32F303-DISCOVERY/main.c
+++ b/demos/STM32/RT-STM32F303-DISCOVERY/main.c
@@ -1,5 +1,5 @@
/*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -79,11 +79,10 @@ int main(void) {
/*
* Activates the serial driver 1 using the driver default configuration.
- * PA9(TX) and PA10(RX) are routed to USART1.
*/
sdStart(&SD1, NULL);
- palSetPadMode(GPIOA, 9, PAL_MODE_ALTERNATE(7));
- palSetPadMode(GPIOA, 10, PAL_MODE_ALTERNATE(7));
+ palSetPadMode(GPIOA, 9, PAL_MODE_ALTERNATE(7)); /* USART1 TX. */
+ palSetPadMode(GPIOA, 10, PAL_MODE_ALTERNATE(7)); /* USART1 RX. */
/*
* Creates the example threads.