diff --git a/components/bt/Kconfig b/components/bt/Kconfig index fa810cdb70..3c06c49ddc 100644 --- a/components/bt/Kconfig +++ b/components/bt/Kconfig @@ -182,6 +182,13 @@ config BTC_TASK_STACK_SIZE help This select btc task stack size +config BTU_TASK_STACK_SIZE + int "Bluetooth Bluedroid Host Stack task stack size" + depends on BLUEDROID_ENABLED + default 4096 + help + This select btu task stack size + config BLUEDROID_MEM_DEBUG bool "Bluedroid memory debug" depends on BLUEDROID_ENABLED diff --git a/components/bt/bluedroid/osi/include/osi/thread.h b/components/bt/bluedroid/osi/include/osi/thread.h index cd08e8f9ca..a8e0773b90 100644 --- a/components/bt/bluedroid/osi/include/osi/thread.h +++ b/components/bt/bluedroid/osi/include/osi/thread.h @@ -72,7 +72,7 @@ typedef enum { #define HCI_H4_QUEUE_LEN 1 #define BTU_TASK_PINNED_TO_CORE (TASK_PINNED_TO_CORE) -#define BTU_TASK_STACK_SIZE (4096 + BT_TASK_EXTRA_STACK_SIZE) +#define BTU_TASK_STACK_SIZE (CONFIG_BTU_TASK_STACK_SIZE + BT_TASK_EXTRA_STACK_SIZE) #define BTU_TASK_PRIO (configMAX_PRIORITIES - 5) #define BTU_TASK_NAME "btuT" #define BTU_QUEUE_LEN 50