From fd0d28afc3eded769827a8c3466cb739b6c194b1 Mon Sep 17 00:00:00 2001 From: Tian Hao Date: Mon, 28 Nov 2016 16:39:53 +0800 Subject: [PATCH] component/bt : cleanup some missing code --- components/bt/Kconfig | 2 +- components/bt/bluedroid/osi/include/thread.h | 4 ++-- components/bt/bluedroid/stack/btu/btu_init.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/bt/Kconfig b/components/bt/Kconfig index 4e8e317927..669a001c5e 100644 --- a/components/bt/Kconfig +++ b/components/bt/Kconfig @@ -12,7 +12,7 @@ menu "BT UTILITY OPTION" visible if BT_ENABLED config BT_USE_ETS_PRINT - bool "BT use print which has lock" + bool "BT use print which has nolock" default y depends on BT_ENABLED help diff --git a/components/bt/bluedroid/osi/include/thread.h b/components/bt/bluedroid/osi/include/thread.h index 11bf0f5850..7e287200e6 100644 --- a/components/bt/bluedroid/osi/include/thread.h +++ b/components/bt/bluedroid/osi/include/thread.h @@ -56,12 +56,12 @@ enum { #define BTU_TASK_STACK_SIZE 4096 #define BTU_TASK_PRIO (configMAX_PRIORITIES - 1) #define BTU_TASK_NAME "btuT" -#define BTU_QUEUE_NUM 30 +#define BTU_QUEUE_NUM 50 -#define BTC_TASK_QUEUE_NUM 20 #define BTC_TASK_STACK_SIZE CONFIG_BTC_TASK_STACK_SIZE //by menuconfig #define BTC_TASK_NAME "btcT" #define BTC_TASK_PRIO (configMAX_PRIORITIES - 5) +#define BTC_TASK_QUEUE_NUM 20 void btu_task_post(uint32_t sig); void hci_host_task_post(void); diff --git a/components/bt/bluedroid/stack/btu/btu_init.c b/components/bt/bluedroid/stack/btu/btu_init.c index b4309f42c4..150073c005 100644 --- a/components/bt/bluedroid/stack/btu/btu_init.c +++ b/components/bt/bluedroid/stack/btu/btu_init.c @@ -200,7 +200,7 @@ void BTU_StartUp(void) goto error_exit; } - xBtuQueue = xQueueCreate(60, sizeof(BtTaskEvt_t)); + xBtuQueue = xQueueCreate(BTU_QUEUE_NUM, sizeof(BtTaskEvt_t)); xTaskCreate(btu_task_thread_handler, BTU_TASK_NAME, BTU_TASK_STACK_SIZE, NULL, BTU_TASK_PRIO, &xBtuTaskHandle); btu_task_post(SIG_BTU_START_UP); /* -- 2.40.0