fix(ble): refactor uart dma hci transport code on ESP32-S31

This commit is contained in:
zhaoweiliang
2026-08-26 11:32:46 +08:00
parent 78019f04ed
commit 3cb65cd9b7
3 changed files with 364 additions and 476 deletions

View File

@@ -123,9 +123,14 @@ menu "Bluetooth controller HCI"
The amount of rx memory received at the same time
config BT_CTRL_HCI_LLDESCS_POOL_NUM
int "The amount of lldecs memory for driver dma mode"
int "The amount of lldecs memory for driver dma mode (Deprecated)"
depends on BT_CTRL_UART_HCI_DMA_MODE
default 20
warning "This option is deprecated and is no longer used"
help
The amount of lldecs memory for driver dma mode
The amount of lldecs memory for driver dma mode.
Deprecated: this option is no longer used after HCI UART DMA
switched to UHCI driver APIs, and will be removed in a future release.
endmenu

View File

@@ -36,6 +36,8 @@ typedef enum {
HCI_TRANSPORT_USB, /*!< USB Transport Mode */
} hci_trans_mode_t;
#define HCI_TRANSPORT_CMD_SZ (260)
/**
* @brief Initialize the HCI transport layer.
* It should be called before using any other functions in the transport layer.