Split UART_MODE_NONE and UART_MODE_DEBUG

This commit is contained in:
Raphael Coeffic
2022-03-20 16:30:59 +01:00
parent f95597a7ce
commit 6b9c4fe165
18 changed files with 25 additions and 65 deletions
+3 -1
View File
@@ -165,7 +165,9 @@ void boardInit()
__enable_irq();
initSerialPorts();
#if defined(DEBUG)
serialInit(SP_AUX1, UART_MODE_DEBUG);
#endif
TRACE("\nHorus board started :)");
TRACE("RCC->CSR = %08x", RCC->CSR);
+2 -5
View File
@@ -120,11 +120,8 @@ void boardInit()
__enable_irq();
#endif
#if defined(DEBUG) && defined(AUX_SERIAL)
auxSerialInit(UART_MODE_DEBUG, 0); // default serial mode (None if DEBUG not defined)
#endif
#if defined(DEBUG) && defined(AUX2_SERIAL)
aux2SerialInit(UART_MODE_DEBUG, 0); // default serial mode (None if DEBUG not defined)
#if defined(DEBUG)
serialInit(SP_AUX1, UART_MODE_DEBUG);
#endif
TRACE("\nNV14 board started :)");
+3 -1
View File
@@ -227,7 +227,9 @@ void boardInit()
i2cInit();
usbInit();
initSerialPorts();
#if defined(DEBUG)
serialInit(SP_AUX1, UART_MODE_DEBUG);
#endif
#if defined(HAPTIC)
hapticInit();