From ee299b2d53e92b2d9dcde7d264ce618c6e95e2f0 Mon Sep 17 00:00:00 2001 From: Lou Tianhao Date: Tue, 27 Jun 2023 17:31:38 +0800 Subject: [PATCH] bugfix: set FORCE_INLINE_ATTR for resume_uart --- components/hal/esp32h2/include/hal/uart_ll.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/hal/esp32h2/include/hal/uart_ll.h b/components/hal/esp32h2/include/hal/uart_ll.h index 463e9cf500..f7099d8d6e 100644 --- a/components/hal/esp32h2/include/hal/uart_ll.h +++ b/components/hal/esp32h2/include/hal/uart_ll.h @@ -15,6 +15,7 @@ #include "soc/uart_periph.h" #include "soc/uart_struct.h" #include "soc/pcr_struct.h" +#include "esp_attr.h" #ifdef __cplusplus extern "C" { @@ -84,7 +85,7 @@ typedef enum { * * @return None. */ -static inline void uart_ll_update(uart_dev_t *hw) +FORCE_INLINE_ATTR void uart_ll_update(uart_dev_t *hw) { hw->reg_update.reg_update = 1; while (hw->reg_update.reg_update); @@ -1049,7 +1050,7 @@ static inline void uart_ll_force_xoff(uart_port_t uart_num) * * @return None. */ -static inline void uart_ll_force_xon(uart_port_t uart_num) +FORCE_INLINE_ATTR void uart_ll_force_xon(uart_port_t uart_num) { REG_CLR_BIT(UART_SWFC_CONF0_SYNC_REG(uart_num), UART_FORCE_XOFF); REG_SET_BIT(UART_SWFC_CONF0_SYNC_REG(uart_num), UART_FORCE_XON);