Bluetooth: Kconfig: Fine tune options for RECV_IS_RX_THREAD

Give more sensible values when RECV_IS_RX_THREAD is configured.

Change-Id: I40b5bd88213d224cc29f63fccef6cecee5868f77
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2016-12-25 15:17:50 +02:00
commit 53b1503ac8

View file

@ -71,8 +71,8 @@ config BLUETOOTH_MAX_CMD_LEN
config BLUETOOTH_RX_BUF_COUNT config BLUETOOTH_RX_BUF_COUNT
int "Number of HCI RX buffers" int "Number of HCI RX buffers"
default 10 default 10
default 1 if BLUETOOTH_RECV_IS_RX_THREAD default 3 if BLUETOOTH_RECV_IS_RX_THREAD
range 1 255 range 3 255
help help
Number of buffers available for incoming ACL packets or HCI events Number of buffers available for incoming ACL packets or HCI events
from the controller. from the controller.
@ -94,6 +94,21 @@ config BLUETOOTH_UART_TO_HOST_DEV_NAME
to connect to an external Bluetooth Host when Zephyr is to connect to an external Bluetooth Host when Zephyr is
acting as a Bluetooth Controller. acting as a Bluetooth Controller.
config BLUETOOTH_RX_STACK_SIZE
int "Size of the receiving thread stack"
depends on BLUETOOTH_HCI_HOST || BLUETOOTH_RECV_IS_RX_THREAD
default 1024
default 512 if CONFIG_BLUETOOTH_HCI_RAW
range 1024 65536
range 512 65536 if CONFIG_BLUETOOTH_HCI_RAW
help
Size of the receiving thread 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
accommodate for that.
if BLUETOOTH_HCI_HOST if BLUETOOTH_HCI_HOST
config BLUETOOTH_INTERNAL_STORAGE config BLUETOOTH_INTERNAL_STORAGE
bool "Use an internal persistent storage handler" bool "Use an internal persistent storage handler"
@ -104,18 +119,6 @@ config BLUETOOTH_INTERNAL_STORAGE
persistent storage handlers through the bt_storage API, rather persistent storage handlers through the bt_storage API, rather
an internal default handler is used for this. an internal default handler is used for this.
config BLUETOOTH_RX_STACK_SIZE
int "Size of the receiving thread stack"
default 1024
range 1024 65536
help
Size of the receiving thread 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
accommodate for that.
config BLUETOOTH_PERIPHERAL config BLUETOOTH_PERIPHERAL
bool "Peripheral Role support" bool "Peripheral Role support"
select BLUETOOTH_CONN select BLUETOOTH_CONN