32 #ifndef TASK_SCHEDULER_H
33 #define TASK_SCHEDULER_H
39 #pragma GCC optimize ("O2")
42 #define MAX_TASK_CNT 5
44 typedef void (*
Task)(void);
165 #endif // TASK_SCHEDULER_H
void Scheduler_Pause(void)
Pause the task scheduler.
bool Scheduler_Task_Delay(Task func, int16_t delay)
Delay execution of a task.
void Scheduler_Init(void)
Initialize and reset the tasks library.
bool Scheduler_Task_Pause(Task func)
Deactivate a task in the scheduler.
void Scheduler_Start(void)
Start the task scheduler.
bool Scheduler_Task_Add(Task func, int16_t period, int16_t delay=0)
Add a task to the task scheduler.
void(* Task)(void)
Example prototype for a function than can be executed as a task.
bool Scheduler_Task_Remove(Task func)
Remove a task from the task scheduler.
bool Scheduler_Task_Start(Task func)
Activate a task in the scheduler.