mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-06 05:14:45 +00:00
NimBLE: Add menuconfig option to select NimBLE stack size
Add option to select NimBLE host stack size
This commit is contained in:
committed by
Abhinav Kudnar
parent
aed041f6e7
commit
38b5724ae4
@@ -23,6 +23,7 @@
|
||||
#include "nimble/nimble_npl.h"
|
||||
|
||||
#define NIMBLE_CORE (CONFIG_BT_NIMBLE_PINNED_TO_CORE < portNUM_PROCESSORS ? CONFIG_BT_NIMBLE_PINNED_TO_CORE : tskNO_AFFINITY)
|
||||
#define NIMBLE_STACK_SIZE CONFIG_BT_NIMBLE_TASK_STACK_SIZE
|
||||
|
||||
#define NIMBLE_PORT_DEINIT_EV_ARG -1
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ nimble_port_freertos_init(TaskFunction_t host_task_fn)
|
||||
* have separate task for NimBLE host, but since something needs to handle
|
||||
* default queue it is just easier to make separate task which does this.
|
||||
*/
|
||||
xTaskCreatePinnedToCore(host_task_fn, "ble", 4096,
|
||||
xTaskCreatePinnedToCore(host_task_fn, "ble", NIMBLE_STACK_SIZE,
|
||||
NULL, (configMAX_PRIORITIES - 4), &host_task_h, NIMBLE_CORE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user