esp-nimble: Make changes to NimBLE tasks

This commit is contained in:
Sagar Bijwe
2024-02-14 12:23:38 +05:30
committed by Abhinav Kudnar
parent 13eb2fffea
commit 38470b3bcc
3 changed files with 5 additions and 2 deletions
+1
View File
@@ -14,6 +14,7 @@
#include "host/ble_hs_adv.h"
#include "host/ble_gap.h"
#include "mesh/porting.h"
#include "nimble/nimble_port.h"
#include "adv.h"
#include "net.h"
@@ -22,6 +22,8 @@
#include "nimble/nimble_npl.h"
#define NIMBLE_CORE (CONFIG_NIMBLE_PINNED_TO_CORE < portNUM_PROCESSORS ? CONFIG_NIMBLE_PINNED_TO_CORE : tskNO_AFFINITY)
#ifdef __cplusplus
extern "C" {
#endif
@@ -46,6 +46,6 @@ 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.
*/
xTaskCreate(host_task_fn, "ble", 2048+400,
NULL, (configMAX_PRIORITIES - 3), &host_task_h);
xTaskCreatePinnedToCore(host_task_fn, "ble", 4096,
NULL, (configMAX_PRIORITIES - 4), &host_task_h, NIMBLE_CORE);
}