Driver: hci_nxp_setup: Support HCI baudrate update
Change running baudrate from `115200` from `3000000`. Implement the function `bt_h4_vnd_setup` to update the HCI bandrate. Add Kconfig `BT_H4_NXP_CTLR_WAIT_TIME_AFTER_BAUDRATE_UPDATE` to set the waiting time after the controller bandrate HCI vendor specific command sent. It is used to ensure the controller is ready to update HCI bandrate. Select `BT_HCI_SETUP` if `BT_H4_NXP_CTLR` is enabled. Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
This commit is contained in:
parent
298ebaf003
commit
56929a26ca
3 changed files with 80 additions and 3 deletions
|
@ -304,6 +304,7 @@ config BT_H4_NXP_CTLR
|
|||
select GPIO
|
||||
depends on BT_H4
|
||||
select CRC
|
||||
select BT_HCI_SETUP
|
||||
default y
|
||||
depends on DT_HAS_NXP_BT_HCI_UART_ENABLED
|
||||
help
|
||||
|
@ -327,4 +328,11 @@ config BT_H4_NXP_CTLR_WAIT_TIME_AFTER_UPLOAD
|
|||
help
|
||||
Waiting time after firmware is uploaded. Unit is millisecond.
|
||||
|
||||
config BT_H4_NXP_CTLR_WAIT_TIME_AFTER_BAUDRATE_UPDATE
|
||||
int "Waiting time after controller baudrate is updated"
|
||||
range 500 5000
|
||||
default 500
|
||||
help
|
||||
Waiting time after controller baudrate is updated. Unit is millisecond.
|
||||
|
||||
endif #BT_H4_NXP_CTLR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue