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 committed 2020-12-11 18:14:00 +02:00
1 parent ad560b650e
commit b6ec217484
5 files changed
+35 -11

No files matched your search

+2 -1
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.