aboutsummaryrefslogtreecommitdiffstats
path: root/include/task.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/task.h')
-rw-r--r--include/task.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/task.h b/include/task.h
index 1ef8639..6456bdc 100644
--- a/include/task.h
+++ b/include/task.h
@@ -28,6 +28,12 @@ void task_init(void (*init)(void));
*/
void task_start(void (*task)(void), uint16_t stackSize);
+/**
+ * Allows task switching to be disabled, for low-level actions.
+ * Multiple holds can be placed, and all must be removed to continue task
+ * switching.
+ * @param hold non-zero for hold, zero to remove hold
+ */
void task_hold(uint8_t hold);
#endif // TASK_H_