Bluetooth: Kconfig: Introduce BLUETOOTH_RX_STACK_SIZE
Applications may want to fine-tune the stack size of the fiber that's used to make callbacks into the application. Change-Id: I2cd3e79283fe85359389528e84d9bcc21e3e19f6 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
24730069ab
commit
984c7a6945
4 changed files with 26 additions and 2 deletions
|
@ -62,6 +62,18 @@ config BLUETOOTH_DEBUG
|
|||
default n
|
||||
select STDOUT_CONSOLE
|
||||
|
||||
config BLUETOOTH_RX_STACK_SIZE
|
||||
int "Size of the receiving fiber stack"
|
||||
default 1024
|
||||
range 1024 65536
|
||||
help
|
||||
Size of the receiving fiber stack. This is the context from
|
||||
which all event callbacks to the application occur. The
|
||||
default value is sufficient for basic operation, but if the
|
||||
application needs to do advanced things in its callbacks that
|
||||
require extra stack space, this value can be increased to
|
||||
accomodate for that.
|
||||
|
||||
if BLUETOOTH_DEBUG
|
||||
|
||||
config BLUETOOTH_DEBUG_DRIVER
|
||||
|
|
|
@ -56,7 +56,7 @@ static NET_BUF_POOL(rx_pool, NBLE_RX_BUF_COUNT, NBLE_BUF_SIZE, &rx, NULL, 0);
|
|||
static struct nano_fifo tx;
|
||||
static NET_BUF_POOL(tx_pool, NBLE_TX_BUF_COUNT, NBLE_BUF_SIZE, &tx, NULL, 0);
|
||||
|
||||
static BT_STACK_NOINIT(rx_fiber_stack, 2048);
|
||||
static BT_STACK_NOINIT(rx_fiber_stack, CONFIG_BLUETOOTH_RX_STACK_SIZE);
|
||||
|
||||
static struct device *nble_dev;
|
||||
|
||||
|
|
|
@ -76,6 +76,18 @@ config BLUETOOTH_MAX_EVT_LEN
|
|||
Commands. It is a 3 byte Command Complete header + 65 byte
|
||||
return parameters = 68 bytes in total.
|
||||
|
||||
config BLUETOOTH_RX_STACK_SIZE
|
||||
int "Size of the receiving fiber stack"
|
||||
default 1024
|
||||
range 1024 65536
|
||||
help
|
||||
Size of the receiving fiber stack. This is the context from
|
||||
which all event callbacks to the application occur. The
|
||||
default value is sufficient for basic operation, but if the
|
||||
application needs to do advanced things in its callbacks that
|
||||
require extra stack space, this value can be increased to
|
||||
accomodate for that.
|
||||
|
||||
config BLUETOOTH_PERIPHERAL
|
||||
bool "Peripheral Role support"
|
||||
default n
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
#endif
|
||||
|
||||
/* Stacks for the fibers */
|
||||
static BT_STACK_NOINIT(rx_fiber_stack, 1024);
|
||||
static BT_STACK_NOINIT(rx_fiber_stack, CONFIG_BLUETOOTH_RX_STACK_SIZE);
|
||||
static BT_STACK_NOINIT(rx_prio_fiber_stack, 256);
|
||||
static BT_STACK_NOINIT(cmd_tx_fiber_stack, 256);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue