mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-01 13:08:08 +00:00
esp-nimble: Make changes to NimBLE tasks
This commit is contained in:
committed by
Abhinav Kudnar
parent
13eb2fffea
commit
38470b3bcc
@@ -14,6 +14,7 @@
|
|||||||
#include "host/ble_hs_adv.h"
|
#include "host/ble_hs_adv.h"
|
||||||
#include "host/ble_gap.h"
|
#include "host/ble_gap.h"
|
||||||
#include "mesh/porting.h"
|
#include "mesh/porting.h"
|
||||||
|
#include "nimble/nimble_port.h"
|
||||||
|
|
||||||
#include "adv.h"
|
#include "adv.h"
|
||||||
#include "net.h"
|
#include "net.h"
|
||||||
|
|||||||
@@ -22,6 +22,8 @@
|
|||||||
|
|
||||||
#include "nimble/nimble_npl.h"
|
#include "nimble/nimble_npl.h"
|
||||||
|
|
||||||
|
#define NIMBLE_CORE (CONFIG_NIMBLE_PINNED_TO_CORE < portNUM_PROCESSORS ? CONFIG_NIMBLE_PINNED_TO_CORE : tskNO_AFFINITY)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#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
|
* 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.
|
* default queue it is just easier to make separate task which does this.
|
||||||
*/
|
*/
|
||||||
xTaskCreate(host_task_fn, "ble", 2048+400,
|
xTaskCreatePinnedToCore(host_task_fn, "ble", 4096,
|
||||||
NULL, (configMAX_PRIORITIES - 3), &host_task_h);
|
NULL, (configMAX_PRIORITIES - 4), &host_task_h, NIMBLE_CORE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user