Skip to content

Commit dfe350e

Browse files
committed
refactor(hci): Apply new ll function name to bt hci
1 parent ef965b2 commit dfe350e

File tree

2 files changed

+5
-5
lines changed
  • components/bt/porting/transport/driver/uart
  • examples/bluetooth/hci/controller_hci_uart_esp32c3_and_esp32s3/main

2 files changed

+5
-5
lines changed

components/bt/porting/transport/driver/uart/hci_driver_uart_dma.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ STAILQ_HEAD(g_hci_rxinfo_list, hci_message);
119119

120120
DRAM_ATTR struct g_hci_rxinfo_list g_hci_rxinfo_head;
121121
static DRAM_ATTR struct uart_env_tag uart_env;
122-
static volatile uhci_dev_t *s_uhci_hw = &UHCI0;
122+
static uhci_dev_t *s_uhci_hw = &UHCI0;
123123
static DRAM_ATTR gdma_channel_handle_t s_rx_channel;
124124
static DRAM_ATTR gdma_channel_handle_t s_tx_channel;
125125

@@ -470,8 +470,8 @@ static void hci_driver_uart_dma_install(void)
470470
gdma_register_tx_event_callbacks(s_tx_channel, &tx_cbs, NULL);
471471
// configure UHCI
472472
uhci_ll_init((uhci_dev_t *)s_uhci_hw);
473-
// uhci_ll_set_eof_mode((uhci_dev_t *)s_uhci_hw, UHCI_RX_LEN_EOF);
474-
uhci_ll_set_eof_mode((uhci_dev_t *)s_uhci_hw, UHCI_RX_IDLE_EOF);
473+
// uhci_ll_rx_set_eof_mode((uhci_dev_t *)s_uhci_hw, UHCI_RX_LEN_EOF);
474+
uhci_ll_rx_set_eof_mode((uhci_dev_t *)s_uhci_hw, UHCI_RX_IDLE_EOF);
475475
// disable software flow control
476476
s_uhci_hw->escape_conf.val = 0;
477477
uhci_ll_attach_uart_port((uhci_dev_t *)s_uhci_hw, s_hci_driver_uart_dma_env.hci_uart_params->hci_uart_port);

examples/bluetooth/hci/controller_hci_uart_esp32c3_and_esp32s3/main/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct uart_env_tag {
5151

5252
struct uart_env_tag uart_env;
5353

54-
static volatile uhci_dev_t *s_uhci_hw = &UHCI0;
54+
static uhci_dev_t *s_uhci_hw = &UHCI0;
5555
static gdma_channel_handle_t s_rx_channel;
5656
static gdma_channel_handle_t s_tx_channel;
5757

@@ -247,7 +247,7 @@ void uhci_uart_install(void)
247247

248248
// configure UHCI
249249
uhci_ll_init(s_uhci_hw);
250-
uhci_ll_set_eof_mode(s_uhci_hw, UHCI_RX_LEN_EOF);
250+
uhci_ll_rx_set_eof_mode(s_uhci_hw, UHCI_RX_LEN_EOF);
251251
// disable software flow control
252252
s_uhci_hw->escape_conf.val = 0;
253253
uhci_ll_attach_uart_port(s_uhci_hw, 1);

0 commit comments

Comments
 (0)