aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARMCM3-STM32F103-GCC/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/ARMCM3-STM32F103-GCC/main.c')
-rw-r--r--demos/ARMCM3-STM32F103-GCC/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/demos/ARMCM3-STM32F103-GCC/main.c b/demos/ARMCM3-STM32F103-GCC/main.c
index f89131d37..d1f78f7e8 100644
--- a/demos/ARMCM3-STM32F103-GCC/main.c
+++ b/demos/ARMCM3-STM32F103-GCC/main.c
@@ -22,7 +22,7 @@
#include <test.h>
#include "board.h"
-#include "stm32_serial.h"
+#include "serial.h"
/*
* Red LEDs blinker thread, times are in milliseconds.
@@ -46,6 +46,11 @@ static msg_t Thread1(void *arg) {
int main(int argc, char **argv) {
/*
+ * Activates the communication port 2 using the driver default configuration.
+ */
+ sdStart(&COM2, NULL);
+
+ /*
* Creates the blinker thread.
*/
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);