2017-07-09 | Paul Boddie | file changeset files shortlog | Fixed erroneous clock and power management operations. |
paul@156 | 1 | #ifndef __TASKS_H__ |
paul@156 | 2 | #define __TASKS_H__ |
paul@156 | 3 | |
paul@217 | 4 | #include <stdint.h> |
paul@156 | 5 | |
paul@204 | 6 | /* Provide a limit to the number of tasks (in a way that employs a constant). */ |
paul@204 | 7 | |
paul@206 | 8 | enum { max_tasks = 10 }; |
paul@159 | 9 | |
paul@156 | 10 | /* Task management functions. */ |
paul@156 | 11 | |
paul@165 | 12 | void init_tasks(); |
paul@165 | 13 | void init_task(); |
paul@202 | 14 | void start_tasks(); |
paul@217 | 15 | void start_task(uint8_t, void (*)(), uint32_t[], uint8_t); |
paul@165 | 16 | void start_task_now(); |
paul@165 | 17 | void switch_task(); |
paul@156 | 18 | |
paul@156 | 19 | #endif /* __TASKS_H__ */ |