Added initialisation of MD3x0 debug USART to miosix bsp init function

replace/ec85814b456fdc5d77839928b341315d30afa957
Silvano Seva 2021-07-09 08:51:09 +02:00
rodzic eb474d6bee
commit c48405659b
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -29,6 +29,7 @@
#include <kernel/sync.h>
#include <hwconfig.h>
#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()