Skip to content

Commit 92335c3

Browse files
committed
Merge branch 'bugfix/c3_s3_uart_hci' into 'master'
bugfix(c3_s3_uart_hci) Fix build error due to change in fn name See merge request app-frameworks/esp_hosted!574
2 parents 76e7c32 + bcd8c32 commit 92335c3

File tree

1 file changed

+6
-0
lines changed
  • esp_hosted_fg/esp/esp_driver/network_adapter/main

1 file changed

+6
-0
lines changed

esp_hosted_fg/esp/esp_driver/network_adapter/main/slave_bt.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
#include "soc/lldesc.h"
2929
#include "esp_mac.h"
3030

31+
#include "esp_idf_version.h"
32+
3133
#if BT_OVER_C3_S3
3234

3335
#include "esp_private/gdma.h"
@@ -361,7 +363,11 @@ static void init_uart_c3_s3(void)
361363

362364
// configure UHCI
363365
uhci_ll_init(s_uhci_hw);
366+
#if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 5, 0)
364367
uhci_ll_set_eof_mode(s_uhci_hw, UHCI_RX_LEN_EOF);
368+
#else
369+
uhci_ll_rx_set_eof_mode(s_uhci_hw, UHCI_RX_LEN_EOF);
370+
#endif
365371
// disable software flow control
366372
s_uhci_hw->escape_conf.val = 0;
367373
uhci_ll_attach_uart_port(s_uhci_hw, 1);

0 commit comments

Comments
 (0)