mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Place uart_tx_wait_idle in IRAM
This commit is contained in:
parent
4654278b1b
commit
3e4627479b
@ -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)) {
|
||||
;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user