Because the number of ACL RX buffers must be at least the number of maximum connections plus one, increasing `CONFIG_BT_MAX_CONN` could inadvertently lead to a build failure if the number of ACL RX buffers is not also increased. This dependency may not be obvious to users. To address this issue, this commit deprecates the `CONFIG_BT_BUF_RX_COUNT` Kconfig symbol and computes the value in `buf.h` using the new `BT_BUF_RX_COUNT` define. Note that the default value and the minimum range value have been changed to 0 to "disable" the option. Additionally, to allow users to increase the number of ACL RX buffers, this commit introduces the new `CONFIG_BT_BUF_RX_COUNT_EXTRA` Kconfig symbol. The value of this symbol will be added to the computed value of `BT_BUF_RX_COUNT`. The configurations of tests and samples have been updated to reflect these changes. Signed-off-by: Théo Battrel <theo.battrel@nordicsemi.no>
25 lines
773 B
Text
25 lines
773 B
Text
# 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
|