NimBLE: Add menuconfig option to select NimBLE stack size

Add option to select NimBLE host stack size
This commit is contained in:
Prasad Alatkar
2019-08-21 15:02:53 +08:00
committed by Abhinav Kudnar
parent aed041f6e7
commit 38b5724ae4
2 changed files with 2 additions and 1 deletions
@@ -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);
}