mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(nimble): Exposed the baud rate for hci uart in menuconfig
This commit is contained in:
parent
9e5c30baff
commit
d1ee48208f
@ -942,9 +942,35 @@ menu "Host-controller Transport"
|
|||||||
help
|
help
|
||||||
Uart port
|
Uart port
|
||||||
|
|
||||||
|
choice BT_NIMBLE_HCI_USE_UART_BAUDRATE
|
||||||
|
prompt "Uart Hci Baud Rate"
|
||||||
|
default UART_BAUDRATE_921600
|
||||||
|
depends on BT_CONTROLLER_DISABLED && BT_NIMBLE_TRANSPORT_UART
|
||||||
|
help
|
||||||
|
Uart Baud Rate
|
||||||
|
|
||||||
|
config UART_BAUDRATE_115200
|
||||||
|
bool "115200"
|
||||||
|
config UART_BAUDRATE_230400
|
||||||
|
bool "230400"
|
||||||
|
config UART_BAUDRATE_460800
|
||||||
|
bool "460800"
|
||||||
|
config UART_BAUDRATE_921600
|
||||||
|
bool "921600"
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
config BT_NIMBLE_HCI_UART_BAUDRATE
|
||||||
|
depends on BT_CONTROLLER_DISABLED && BT_NIMBLE_TRANSPORT_UART
|
||||||
|
int
|
||||||
|
default 115200 if UART_BAUDRATE_115200
|
||||||
|
default 230400 if UART_BAUDRATE_230400
|
||||||
|
default 460800 if UART_BAUDRATE_460800
|
||||||
|
default 921600 if UART_BAUDRATE_921600
|
||||||
|
|
||||||
choice BT_NIMBLE_USE_HCI_UART_PARITY
|
choice BT_NIMBLE_USE_HCI_UART_PARITY
|
||||||
prompt "Uart PARITY"
|
prompt "Uart PARITY"
|
||||||
default UART_PARITY_NONE
|
default UART_PARITY_NONE
|
||||||
|
depends on BT_CONTROLLER_DISABLED && BT_NIMBLE_TRANSPORT_UART
|
||||||
help
|
help
|
||||||
Uart Parity
|
Uart Parity
|
||||||
|
|
||||||
@ -960,16 +986,19 @@ menu "Host-controller Transport"
|
|||||||
int
|
int
|
||||||
default 0 if !UART_PARITY_NONE
|
default 0 if !UART_PARITY_NONE
|
||||||
default 1 if UART_PARITY_NONE
|
default 1 if UART_PARITY_NONE
|
||||||
|
depends on BT_CONTROLLER_DISABLED && BT_NIMBLE_TRANSPORT_UART
|
||||||
|
|
||||||
config BT_NIMBLE_TRANSPORT_UART_PARITY_ODD
|
config BT_NIMBLE_TRANSPORT_UART_PARITY_ODD
|
||||||
int
|
int
|
||||||
default 0 if !UART_PARITY_ODD
|
default 0 if !UART_PARITY_ODD
|
||||||
default 1 if UART_PARITY_ODD
|
default 1 if UART_PARITY_ODD
|
||||||
|
depends on BT_CONTROLLER_DISABLED && BT_NIMBLE_TRANSPORT_UART
|
||||||
|
|
||||||
config BT_NIMBLE_TRANSPORT_UART_PARITY_EVEN
|
config BT_NIMBLE_TRANSPORT_UART_PARITY_EVEN
|
||||||
int
|
int
|
||||||
default 0 if !UART_PARITY_EVEN
|
default 0 if !UART_PARITY_EVEN
|
||||||
default 1 if UART_PARITY_EVEN
|
default 1 if UART_PARITY_EVEN
|
||||||
|
depends on BT_CONTROLLER_DISABLED && BT_NIMBLE_TRANSPORT_UART
|
||||||
|
|
||||||
config BT_NIMBLE_UART_RX_PIN
|
config BT_NIMBLE_UART_RX_PIN
|
||||||
int "UART Rx pin"
|
int "UART Rx pin"
|
||||||
|
@ -1792,7 +1792,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_BT_CONTROLLER_DISABLED
|
#if CONFIG_BT_CONTROLLER_DISABLED && CONFIG_BT_NIMBLE_TRANSPORT_UART
|
||||||
#ifndef MYNEWT_VAL_BLE_TRANSPORT_UART_PORT
|
#ifndef MYNEWT_VAL_BLE_TRANSPORT_UART_PORT
|
||||||
#define MYNEWT_VAL_BLE_TRANSPORT_UART_PORT CONFIG_BT_NIMBLE_TRANSPORT_UART_PORT
|
#define MYNEWT_VAL_BLE_TRANSPORT_UART_PORT CONFIG_BT_NIMBLE_TRANSPORT_UART_PORT
|
||||||
#endif
|
#endif
|
||||||
@ -1814,7 +1814,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MYNEWT_VAL_BLE_TRANSPORT_UART_BAUDRATE
|
#ifndef MYNEWT_VAL_BLE_TRANSPORT_UART_BAUDRATE
|
||||||
#define MYNEWT_VAL_BLE_TRANSPORT_UART_BAUDRATE (921600)
|
#define MYNEWT_VAL_BLE_TRANSPORT_UART_BAUDRATE CONFIG_BT_NIMBLE_HCI_UART_BAUDRATE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MYNEWT_VAL_BLE_TRANSPORT_UART_DATA_BITS
|
#ifndef MYNEWT_VAL_BLE_TRANSPORT_UART_DATA_BITS
|
||||||
|
Loading…
Reference in New Issue
Block a user