Split UART_MODE_NONE and UART_MODE_DEBUG
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 :)");
|
||||
|
||||
@@ -227,7 +227,9 @@ void boardInit()
|
||||
i2cInit();
|
||||
usbInit();
|
||||
|
||||
initSerialPorts();
|
||||
#if defined(DEBUG)
|
||||
serialInit(SP_AUX1, UART_MODE_DEBUG);
|
||||
#endif
|
||||
|
||||
#if defined(HAPTIC)
|
||||
hapticInit();
|
||||
|
||||
Reference in New Issue
Block a user