Skip to content

Commit 2d96d67

Browse files
committed
fix(bt/controller): Fixed hci uart example compile error on ESP32C3
1 parent 3075efd commit 2d96d67

File tree

2 files changed

+14
-0
lines changed
  • components/bt

2 files changed

+14
-0
lines changed

components/bt/controller/esp32c3/bt.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,6 +1871,11 @@ void esp_bt_controller_wakeup_request(void)
18711871

18721872
}
18731873

1874+
int IRAM_ATTR esp_bt_h4tl_eif_io_event_notify(int event)
1875+
{
1876+
return btdm_hci_tl_io_event_post(event);
1877+
}
1878+
18741879
static void coex_wifi_sleep_set_hook(bool sleep)
18751880
{
18761881

components/bt/include/esp32c3/include/esp_bt.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,15 @@ bool esp_bt_controller_is_sleeping(void);
715715
*/
716716
void esp_bt_controller_wakeup_request(void);
717717

718+
/**
719+
* @brief notify bluetooth controller task to process the event upon Tx or Rx done
720+
*
721+
* Note that this function shall not be invoked before esp_bt_controller_enable()
722+
* This function can be called in both ISR and non-ISR context
723+
*
724+
*/
725+
int esp_bt_h4tl_eif_io_event_notify(int event);
726+
718727
/**
719728
* @brief Get the Bluetooth module sleep clock source.
720729
*

0 commit comments

Comments
 (0)