This sample is an alternative implementation of hci_uart. The new sample differs from the existing sample in that it uses the async UART API instead of the interrupt driven API. Included in this commit is a new test for HCI UART flow control. It's enabled for hci_uart_async. The test can excercise also the existing hci_uart sample (with some minimal changes to allow compiling in the mock controller and test suite). The existing hci_uart sample currently fails the flow control test. Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
26 lines
773 B
Plaintext
26 lines
773 B
Plaintext
# hci_uart_async
|
|
CONFIG_SERIAL=y
|
|
CONFIG_UART_ASYNC_API=y
|
|
|
|
# hci_raw (dependency of hci_uart)
|
|
CONFIG_BT=y
|
|
CONFIG_BT_HCI_RAW=y
|
|
CONFIG_BT_HCI_RAW_H4=y
|
|
CONFIG_BT_HCI_RAW_H4_ENABLE=y
|
|
|
|
# Controller configuration. Modify these for your application's needs.
|
|
CONFIG_BT_MAX_CONN=16
|
|
CONFIG_BT_BUF_ACL_RX_SIZE=255
|
|
CONFIG_BT_BUF_CMD_TX_SIZE=255
|
|
CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE=255
|
|
|
|
# Send an initial HCI_Command_Complete event on boot without waiting for
|
|
# HCI_Reset. Make sure to use the same value for this setting in your
|
|
# host application.
|
|
#CONFIG_BT_WAIT_NOP=y
|
|
|
|
# See `overlay.app`. The 'zephyr,console' chosen node is deleted there
|
|
# in case it has a interfering default. Those same boards set this
|
|
# config and it must be undone or the build will fail.
|
|
CONFIG_UART_CONSOLE=n
|