From: Jeroen Domburg Date: Fri, 25 Aug 2017 09:46:28 +0000 (+0800) Subject: Place uart_tx_wait_idle in IRAM X-Git-Tag: v3.1-dev~362^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e4627479b6fff6b652de6d2f0302101e51ee5c2;p=esp-idf Place uart_tx_wait_idle in IRAM --- diff --git a/components/esp32/include/rom/uart.h b/components/esp32/include/rom/uart.h index 81fa26c238..8f075392cb 100644 --- a/components/esp32/include/rom/uart.h +++ b/components/esp32/include/rom/uart.h @@ -267,7 +267,7 @@ void uart_tx_flush(uint8_t uart_no); * The function defined in ROM code has a bug, so we define the correct version * here for compatibility. */ -static inline void uart_tx_wait_idle(uint8_t uart_no) { +static inline void IRAM_ATTR uart_tx_wait_idle(uint8_t uart_no) { while(REG_GET_FIELD(UART_STATUS_REG(uart_no), UART_ST_UTX_OUT)) { ; }