From c48405659b515366f51f639c6786f25144226874 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Fri, 9 Jul 2021 08:51:09 +0200 Subject: [PATCH] Added initialisation of MD3x0 debug USART to miosix bsp init function --- platform/mcu/STM32F4xx/boot/bsp.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/mcu/STM32F4xx/boot/bsp.cpp b/platform/mcu/STM32F4xx/boot/bsp.cpp index c3eae09d..51da8938 100644 --- a/platform/mcu/STM32F4xx/boot/bsp.cpp +++ b/platform/mcu/STM32F4xx/boot/bsp.cpp @@ -29,6 +29,7 @@ #include #include #include "../drivers/usb_vcom.h" +#include "../drivers/USART3.h" namespace miosix { @@ -50,6 +51,11 @@ void IRQbspInit() GPIOD->OSPEEDR=0xaaaaaaaa; GPIOE->OSPEEDR=0xaaaaaaaa; GPIOH->OSPEEDR=0xaaaaaaaa; + + #ifdef MD3x0_ENABLE_DBG + usart3_init(115200); + usart3_IRQwrite("starting...\r\n"); + #endif } void bspInit2()