diff --git a/components/bt/controller/esp32c3/bt.c b/components/bt/controller/esp32c3/bt.c index 4deaa74cf1..2ab73319a3 100644 --- a/components/bt/controller/esp32c3/bt.c +++ b/components/bt/controller/esp32c3/bt.c @@ -1871,6 +1871,11 @@ void esp_bt_controller_wakeup_request(void) } +int IRAM_ATTR esp_bt_h4tl_eif_io_event_notify(int event) +{ + return btdm_hci_tl_io_event_post(event); +} + static void coex_wifi_sleep_set_hook(bool sleep) { diff --git a/components/bt/include/esp32c3/include/esp_bt.h b/components/bt/include/esp32c3/include/esp_bt.h index a401527df5..bae8983b8b 100644 --- a/components/bt/include/esp32c3/include/esp_bt.h +++ b/components/bt/include/esp32c3/include/esp_bt.h @@ -715,6 +715,15 @@ bool esp_bt_controller_is_sleeping(void); */ void esp_bt_controller_wakeup_request(void); +/** + * @brief notify bluetooth controller task to process the event upon Tx or Rx done + * + * Note that this function shall not be invoked before esp_bt_controller_enable() + * This function can be called in both ISR and non-ISR context + * + */ +int esp_bt_h4tl_eif_io_event_notify(int event); + /** * @brief Get the Bluetooth module sleep clock source. *