Skip to content
Snippets Groups Projects
Commit c4506ed8 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266: Let esp8266 "os" messages go to standard (REPL) UART.

That's definitely helpful for debugging.
parent 402a7438
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,9 @@ INC += -I../lib/timeutils
INC += -I$(BUILD)
INC += -I$(ESP_SDK)/include
UART_OS = 1
# UART for "os" messages. 0 is normal UART as used by MicroPython REPL,
# 1 is debug UART (tx only).
UART_OS = 0
CFLAGS_XTENSA = -fsingle-precision-constant -Wdouble-promotion \
-D__ets__ -DICACHE_FLASH \
......
......@@ -205,7 +205,7 @@ void ICACHE_FLASH_ATTR uart_init(UartBautRate uart0_br, UartBautRate uart1_br) {
uart_config(UART1);
ETS_UART_INTR_ENABLE();
// install uart1 putc callback
// install handler for "os" messages
os_install_putc1((void *)uart_os_write_char);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment