]> granicus.if.org Git - esp-idf/commitdiff
Place uart_tx_wait_idle in IRAM
authorJeroen Domburg <jeroen@espressif.com>
Fri, 25 Aug 2017 09:46:28 +0000 (17:46 +0800)
committerJeroen Domburg <jeroen@espressif.com>
Fri, 25 Aug 2017 09:46:28 +0000 (17:46 +0800)
components/esp32/include/rom/uart.h

index 81fa26c23887d5e6ae282ac7fc7605827a71aff4..8f075392cb97dfae4d63f6cfb31da2e68bbeb0a3 100644 (file)
@@ -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)) {
         ;
     }