From 5e87cdec7edbc874038418c9a22d6cbaf0f66942 Mon Sep 17 00:00:00 2001 From: Tian Hao Date: Tue, 13 Dec 2016 19:34:07 +0800 Subject: [PATCH] component/bt : increase the task stack size 1. increase HCI task stack size 2. increase BTC task stack size for default --- components/bt/Kconfig | 2 +- components/bt/bluedroid/osi/include/thread.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/bt/Kconfig b/components/bt/Kconfig index 5888da251..9a8014fa6 100644 --- a/components/bt/Kconfig +++ b/components/bt/Kconfig @@ -10,7 +10,7 @@ config BT_ENABLED config BTC_TASK_STACK_SIZE int "BT event (callback to application) task stack size" - default 2048 + default 3072 help This select btc task stack size diff --git a/components/bt/bluedroid/osi/include/thread.h b/components/bt/bluedroid/osi/include/thread.h index 3bb585fa8..9aff43740 100644 --- a/components/bt/bluedroid/osi/include/thread.h +++ b/components/bt/bluedroid/osi/include/thread.h @@ -43,15 +43,15 @@ enum { SIG_BTIF_WORK = 0xff }; -#define HCI_HOST_TASK_STACK_SIZE 1024 +#define HCI_HOST_TASK_STACK_SIZE 1500 #define HCI_HOST_TASK_PRIO (configMAX_PRIORITIES - 3) #define HCI_HOST_TASK_NAME "hciHostT" -#define HCI_HOST_QUEUE_NUM 30 +#define HCI_HOST_QUEUE_NUM 40 -#define HCI_H4_TASK_STACK_SIZE 1024 +#define HCI_H4_TASK_STACK_SIZE 1500 #define HCI_H4_TASK_PRIO (configMAX_PRIORITIES - 3) #define HCI_H4_TASK_NAME "hciH4T" -#define HCI_H4_QUEUE_NUM 40 +#define HCI_H4_QUEUE_NUM 60 #define BTU_TASK_STACK_SIZE 4096 #define BTU_TASK_PRIO (configMAX_PRIORITIES - 1)