File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ STAILQ_HEAD(g_hci_rxinfo_list, hci_message);
119119
120120DRAM_ATTR struct g_hci_rxinfo_list g_hci_rxinfo_head ;
121121static 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 ;
123123static DRAM_ATTR gdma_channel_handle_t s_rx_channel ;
124124static 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 );
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ struct uart_env_tag {
5151
5252struct 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 ;
5555static gdma_channel_handle_t s_rx_channel ;
5656static 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 );
You can’t perform that action at this time.
0 commit comments