Rleg
2
|
Implentation of Scheduler for tasks: More...
Functions | |
void | timer_new_task (TASK_S *task, void(*runFunction)(void)) |
Create a task. More... | |
void | timer_start_task (TASK_S *task, void(*alertFunction)(int), int period_us) |
Start some task. More... | |
void | timer_stop_task (TASK_S *task) |
Stop some task. More... | |
Implentation of Scheduler for tasks:
void timer_new_task | ( | TASK_S * | task, |
void(*)(void) | runFunction | ||
) |
Create a task.
*task | |
*voidFunction | Pointer to the function called to execute |
Definition at line 16 of file taskScheduler.c.
Referenced by main().
void timer_start_task | ( | TASK_S * | task, |
void(*)(int) | alertFunction, | ||
int | period_us | ||
) |
Start some task.
*task | Struct whith task data |
period_us | Period Value to repeat the task |
Definition at line 27 of file taskScheduler.c.
References TASK_S::isFirstExecution, TASK_S::period_us, and TASK_S::timer.
Referenced by main().
void timer_stop_task | ( | TASK_S * | task | ) |
Stop some task.
Definition at line 129 of file taskScheduler.c.
Referenced by main().