New changes according to the review : Priority 0 for display, 1 for system, timer and ble host, and 2 for ble LL
This commit is contained in:
parent
cd1f218dd8
commit
a8b7fbe48b
3 changed files with 4 additions and 3 deletions
|
@ -60,7 +60,7 @@
|
|||
#define configUSE_TICKLESS_IDLE_SIMPLE_DEBUG 0 /* See into vPortSuppressTicksAndSleep source code for explanation */
|
||||
#define configCPU_CLOCK_HZ (SystemCoreClock)
|
||||
#define configTICK_RATE_HZ 1024
|
||||
#define configMAX_PRIORITIES (4)
|
||||
#define configMAX_PRIORITIES (3)
|
||||
#define configMINIMAL_STACK_SIZE (120)
|
||||
#define configTOTAL_HEAP_SIZE (1024 * 17)
|
||||
#define configMAX_TASK_NAME_LEN (4)
|
||||
|
|
|
@ -77,6 +77,7 @@ int GAPEventCallback(struct ble_gap_event* event, void* arg) {
|
|||
|
||||
void NimbleController::Init() {
|
||||
while (!ble_hs_synced()) {
|
||||
vTaskDelay(10);
|
||||
}
|
||||
|
||||
nptr = this;
|
||||
|
|
|
@ -38,7 +38,7 @@ nimble_port_freertos_init(TaskFunction_t host_task_fn)
|
|||
* since it has compatible prototype.
|
||||
*/
|
||||
xTaskCreate(nimble_port_ll_task_func, "ll", configMINIMAL_STACK_SIZE + 200,
|
||||
NULL, 3, &ll_task_h);
|
||||
NULL, 2, &ll_task_h);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -47,5 +47,5 @@ nimble_port_freertos_init(TaskFunction_t host_task_fn)
|
|||
* default queue it is just easier to make separate task which does this.
|
||||
*/
|
||||
xTaskCreate(host_task_fn, "ble", configMINIMAL_STACK_SIZE + 600,
|
||||
NULL, 2, &host_task_h);
|
||||
NULL, 1, &host_task_h);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue