Files
esp-idf/components/bt/porting_btdm/transport/Kconfig.in
T

145 lines
4.5 KiB
Plaintext

menu "Bluetooth controller HCI"
config BT_CTRL_HCI_CMD_NUM
int "HCI CMD buffer number"
range 1 255
default 5
choice BT_CTRL_HCI_INTERFACE
prompt "HCI mode"
default BT_CTRL_HCI_INTERFACE_USE_RAM
config BT_CTRL_HCI_INTERFACE_USE_RAM
bool "VHCI"
help
Use RAM as HCI interface
config BT_CTRL_HCI_INTERFACE_USE_UART
bool "UART(H4)"
help
Use UART as HCI interface
endchoice
choice BT_CTRL_UART_HCI_MODE_CHOICE
prompt "UART HCI mode"
depends on BT_CTRL_HCI_INTERFACE_USE_UART
default BT_CTRL_UART_HCI_NO_DMA_MODE
help
Specify UART HCI mode: DMA or No DMA
config BT_CTRL_UART_HCI_DMA_MODE
bool "UHCI(UART with DMA)(EXPERIMENTAL)"
help
UART HCI Mode with DMA functionality.
config BT_CTRL_UART_HCI_NO_DMA_MODE
bool "UART(NO DMA)"
help
UART HCI Mode without DMA functionality.
endchoice
config BT_CTRL_HCI_UART_PORT
int "HCI UART port"
depends on BT_CTRL_HCI_INTERFACE_USE_UART
default 1
help
Set the port number of HCI UART
config BT_CTRL_HCI_UART_FLOWCTRL
bool "HCI uart Hardware Flow ctrl"
depends on BT_CTRL_HCI_INTERFACE_USE_UART
default n
config BT_CTRL_HCI_UART_TX_PIN
int "HCI uart Tx gpio"
depends on BT_CTRL_HCI_INTERFACE_USE_UART
default 19
config BT_CTRL_HCI_UART_RX_PIN
int "HCI uart Rx gpio"
depends on BT_CTRL_HCI_INTERFACE_USE_UART
default 10
config BT_CTRL_HCI_UART_RTS_PIN
int "HCI uart RTS gpio"
depends on BT_CTRL_HCI_UART_FLOWCTRL
default 4
config BT_CTRL_HCI_UART_CTS_PIN
int "HCI uart CTS gpio"
depends on BT_CTRL_HCI_UART_FLOWCTRL
default 5
config BT_CTRL_HCI_UART_BAUD
int "HCI uart baudrate"
depends on BT_CTRL_HCI_INTERFACE_USE_UART
default 921600
help
HCI uart baud rate 115200 ~ 1000000
choice BT_CTRL_HCI_UART_PARITY
prompt "select uart parity"
depends on BT_CTRL_HCI_INTERFACE_USE_UART
default BT_CTRL_HCI_UART_UART_PARITY_DISABLE
config BT_CTRL_HCI_UART_UART_PARITY_DISABLE
bool "PARITY_DISABLE"
help
UART_PARITY_DISABLE
config BT_CTRL_HCI_UART_UART_PARITY_EVEN
bool "PARITY_EVEN"
help
UART_PARITY_EVEN
config BT_CTRL_HCI_UART_UART_PARITY_ODD
bool "PARITY_ODD"
help
UART_PARITY_ODD
endchoice
config BT_CTRL_HCI_UART_RX_BUFFER_SIZE
int "The size of rx ring buffer memory"
depends on BT_CTRL_UART_HCI_NO_DMA_MODE
default 512
help
The size of rx ring buffer memory
config BT_CTRL_HCI_UART_TX_BUFFER_SIZE
int "The size of tx ring buffer memory"
depends on BT_CTRL_UART_HCI_NO_DMA_MODE
default 256
help
The size of tx ring buffer memory
config BT_CTRL_HCI_TRANS_TASK_STACK_SIZE
int "HCI transport task stack size"
depends on !BT_CTRL_HCI_INTERFACE_USE_RAM
default 1024
help
This configures stack size of hci transport task
config BT_CTRL_HCI_TRANS_RX_MEM_NUM
int "The amount of rx memory received at the same time"
depends on BT_CTRL_UART_HCI_DMA_MODE
default 3
help
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 (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.
Deprecated: this option is no longer used after HCI UART DMA
switched to UHCI driver APIs, and will be removed in a future release.
config BT_CTRL_NONBLOCK_CMD_BUF
bool "Return NULL when no HCI command buffer is available instead of blocking"
default y if BT_CTRL_UART_HCI_DMA_MODE || BT_NIMBLE_ENABLED
default n
help
By default, the API will block if no HCI command buffer is available.
It is recommended to enable this option when HCI Tx and Rx processing run within the same task.
Otherwise, the task may deadlock.
endmenu