mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Use CONFIG value instead of hard-coded value.
Add intermediate defines. Use CONFIG_BTU_TASK_STACK_SIZE instead of hard-coded value in Bluedroid component
This commit is contained in:
parent
5b9576e282
commit
f8212988c4
@ -19,6 +19,16 @@
|
||||
#include "bt_common.h"
|
||||
#include "bt_user_config.h"
|
||||
|
||||
/**********************************************************
|
||||
* Thread/Task reference
|
||||
**********************************************************/
|
||||
#ifdef CONFIG_BT_BTU_TASK_STACK_SIZE
|
||||
#define UC_BT_BTU_TASK_STACK_SIZE CONFIG_BT_BTU_TASK_STACK_SIZE
|
||||
#else
|
||||
#define UC_BT_BTU_TASK_STACK_SIZE 4096
|
||||
#endif
|
||||
|
||||
|
||||
/**********************************************************
|
||||
* Profile reference
|
||||
**********************************************************/
|
||||
|
@ -41,6 +41,10 @@
|
||||
|
||||
#include "stack/dyn_mem.h" /* defines static and/or dynamic memory for components */
|
||||
|
||||
|
||||
/* OS Configuration from User config (eg: sdkconfig) */
|
||||
#define BT_BTU_TASK_STACK_SIZE UC_BT_BTU_TASK_STACK_SIZE
|
||||
|
||||
/******************************************************************************
|
||||
**
|
||||
** Classic BT features
|
||||
|
@ -45,7 +45,7 @@
|
||||
#endif
|
||||
|
||||
#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 (BT_BTU_TASK_STACK_SIZE + BT_TASK_EXTRA_STACK_SIZE)
|
||||
#define BTU_TASK_PRIO (BT_TASK_MAX_PRIORITIES - 5)
|
||||
#define BTU_TASK_NAME "btuT"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user