bluetooth: host: Specify controller in BT_HCI_TX_STACK_SIZE defaults
By specifying the controller directly when selecting the default BT_HCI_TX_STACK_SIZE, an external controller may rely on the final default value when none of the in-tree controllers are used. The value is increased to 1024 to accomodate the current worst-case stack size. Signed-off-by: Thomas Stenersen <thomas.stenersen@nordicsemi.no>
This commit is contained in:
parent
923658a981
commit
c1a18fb514
1 changed files with 8 additions and 5 deletions
|
@ -48,17 +48,20 @@ config BT_RX_BUF_LEN
|
||||||
(4 bytes) and the ACL header (also 4 bytes) which yields 73 bytes.
|
(4 bytes) and the ACL header (also 4 bytes) which yields 73 bytes.
|
||||||
|
|
||||||
config BT_HCI_TX_STACK_SIZE
|
config BT_HCI_TX_STACK_SIZE
|
||||||
|
# NOTE: This value is derived from other symbols and should not be
|
||||||
|
# user-configurable. Do not give it a prompt.
|
||||||
int
|
int
|
||||||
default 512 if BT_H4
|
default 512 if BT_H4
|
||||||
default 512 if BT_H5
|
default 512 if BT_H5
|
||||||
default 416 if BT_SPI
|
default 416 if BT_SPI
|
||||||
default 940 if BT_CTLR && NO_OPTIMIZATIONS
|
default 940 if BT_CTLR && (BT_LL_SW || BT_LL_SW_SPLIT) && NO_OPTIMIZATIONS
|
||||||
default 1024 if BT_CTLR && BT_CENTRAL
|
default 1024 if BT_CTLR && (BT_LL_SW || BT_LL_SW_SPLIT) && BT_CENTRAL
|
||||||
default 640 if BT_CTLR
|
default 640 if BT_CTLR && (BT_LL_SW || BT_LL_SW_SPLIT)
|
||||||
default 512 if BT_USERCHAN
|
default 512 if BT_USERCHAN
|
||||||
# Even if no driver is selected the following default is still
|
# Even if no driver is selected the following default is still
|
||||||
# needed e.g. for unit tests.
|
# needed e.g. for unit tests. This default will also server as
|
||||||
default 512
|
# the worst-case stack size if an out-of-tree controller is used.
|
||||||
|
default 1024
|
||||||
help
|
help
|
||||||
Stack size needed for executing bt_send with specified driver
|
Stack size needed for executing bt_send with specified driver
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue