loop() call yield() instead of vTaskDelay(1)

This commit is contained in:
hathach committed 2017-03-15 12:57:06 +07:00
1 parent 400edfa120
commit 5fd39b1e28
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ static void loop_task(void* arg)
#endif
// To compatible with most code where loop is not rtos-aware
vTaskDelay(1); //taskYIELD();
taskYIELD(); // vTaskDelay(1);
}
}
+3 -3
View File
@@ -53,10 +53,10 @@
enum
{
TASK_PRIO_LOWEST = 0,
TASK_PRIO_LOWEST = 0, // Idle task, should not be used
TASK_PRIO_LOW = 1,
TASK_PRIO_NORMAL = 2,
TASK_PRIO_HIGH = 3,
TASK_PRIO_NORMAL = 2, // Loop, Timer Task
TASK_PRIO_HIGH = 3, // Bluefruit Task
TASK_PRIO_HIGHEST = 4,
};