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>
36 lines
807 B
Plaintext
36 lines
807 B
Plaintext
CONFIG_INIT_STACKS=y
|
|
CONFIG_ISR_STACK_SIZE=768
|
|
CONFIG_MAIN_STACK_SIZE=512
|
|
CONFIG_DISPLAY=y
|
|
CONFIG_MICROBIT_DISPLAY=y
|
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1024
|
|
CONFIG_MICROBIT_DISPLAY_STR_MAX=5
|
|
CONFIG_GPIO=y
|
|
|
|
CONFIG_PM=n
|
|
|
|
CONFIG_BT_PERIPHERAL=n
|
|
CONFIG_BT_EXT_ADV=n
|
|
CONFIG_BT_RX_STACK_SIZE=1100
|
|
CONFIG_BT_BUF_EVT_RX_COUNT=3
|
|
CONFIG_BT_BUF_ACL_RX_COUNT_EXTRA=1
|
|
CONFIG_BT_BUF_EVT_DISCARDABLE_COUNT=3
|
|
|
|
CONFIG_BT_CTLR_ADV_EXT=n
|
|
|
|
CONFIG_BT_MESH_ADV_BUF_COUNT=3
|
|
CONFIG_BT_MESH_SEG_BUFS=3
|
|
CONFIG_BT_MESH_RELAY=n
|
|
CONFIG_BT_MESH_LOOPBACK_BUFS=1
|
|
|
|
CONFIG_BT_MESH_PB_GATT=n
|
|
CONFIG_BT_MESH_GATT_PROXY=n
|
|
CONFIG_BT_MESH_MODEL_EXTENSIONS=n
|
|
CONFIG_BT_MESH_FRIEND=n
|
|
|
|
CONFIG_BT_MESH_SUBNET_COUNT=1
|
|
CONFIG_BT_MESH_APP_KEY_COUNT=1
|
|
CONFIG_BT_MESH_MODEL_GROUP_COUNT=1
|
|
CONFIG_BT_MESH_LABEL_COUNT=0
|
|
CONFIG_BT_MESH_ACCESS_DELAYABLE_MSG=n
|