We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 400edfa commit 5fd39b1Copy full SHA for 5fd39b1
cores/nRF5/main.cpp
@@ -52,7 +52,7 @@ static void loop_task(void* arg)
52
#endif
53
54
// To compatible with most code where loop is not rtos-aware
55
- vTaskDelay(1); //taskYIELD();
+ taskYIELD(); // vTaskDelay(1);
56
}
57
58
cores/nRF5/rtos.h
@@ -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,
59
- TASK_PRIO_HIGH = 3,
+ TASK_PRIO_NORMAL = 2, // Loop, Timer Task
+ TASK_PRIO_HIGH = 3, // Bluefruit Task
60
TASK_PRIO_HIGHEST = 4,
61
};
62
0 commit comments