exo: Support uart logging

This can be enabled via compile time flags or exosphere.ini.
Compile time flags override exosphere.ini
This commit is contained in:
CTCaer
2020-12-11 18:14:00 +02:00
parent ad560b650e
commit b6ec217484
5 changed files with 35 additions and 11 deletions

View File

@@ -377,7 +377,8 @@ void hw_init()
#ifdef DEBUG_UART_PORT
clock_enable_uart(DEBUG_UART_PORT);
uart_init(DEBUG_UART_PORT, 115200);
uart_init(DEBUG_UART_PORT, DEBUG_UART_BAUDRATE);
uart_invert(DEBUG_UART_PORT, DEBUG_UART_INVERT, UART_INVERT_TXD);
#endif
// Enable Dynamic Voltage and Frequency Scaling device clock.