2016-10-03 | Paul Boddie | raw annotate files changeset graph | Increased the number of tasks, cycling over initialised tasks only. |
1 #ifndef __TASKS_H__ 2 #define __TASKS_H__ 3 4 #include "xburst_types.h" 5 6 /* Provide a limit to the number of tasks (in a way that employs a constant). */ 7 8 enum { max_tasks = 10 }; 9 10 /* Task management functions. */ 11 12 void init_tasks(); 13 void init_task(); 14 void start_tasks(); 15 void start_task(unsigned short, void (*)(), u32[], u8); 16 void start_task_now(); 17 void switch_task(); 18 19 #endif /* __TASKS_H__ */