9 typedef void (*task_func_t)(void);
10 typedef void (*thread_func_t)(void);
13 task_func_t task_func;
25 #define HOOK_USER_TASK(_task_func, _priority, _stacksize) \
26 static struct task_hook _##_task_func \
27 __attribute__((section(".tasks"), used)) = { \
28 .task_func = _task_func, \
29 .priority = _priority, \
30 .stacksize = _stacksize, \
41 int task_create(task_func_t task_func, uint8_t priority,
int stack_size);
int task_create(task_func_t task_func, uint8_t priority, int stack_size)
Create new task.
Definition: task.c:23