feat(esp_driver_uart): support hp uarts wakeup modes 1 2 3 during light sleep

This commit is contained in:
Li Shuai
2025-03-13 16:17:41 +08:00
parent ea57c1b491
commit d115a3daac
10 changed files with 88 additions and 1 deletions

View File

@@ -67,6 +67,16 @@ typedef struct {
*/
esp_err_t uart_wakeup_setup(uart_port_t uart_num, const uart_wakeup_cfg_t *cfg);
/**
* @brief Clear the UART wakeup configuration.
*
* This function will clear the UART wakeup behavior and set to its default configuration.
*
* @param uart_num The UART port to initialize for wakeup (e.g., UART_NUM_0, UART_NUM_1, etc.).
* @param wakeup_mode The UART wakeup mode set in `uart_wakeup_setup`.
*/
void uart_wakeup_clear(uart_port_t uart_num, uart_wakeup_mode_t wakeup_mode);
#ifdef __cplusplus
}
#endif