20 #ifndef DPL_DPL_TASKS_H
21 #define DPL_DPL_TASKS_H
23 #include "os/os_task.h"
61 void *arg, uint8_t prio,
dpl_time_t sanity_itvl,
64 return os_task_init(&t->
t, name, func, arg, prio, sanity_itvl, stack_bottom, stack_size);
73 return os_task_remove(&t->
t);
83 return os_task_count();
91 return os_task_yield();
static void dpl_task_yield(void)
Lets current thread yield.
static int dpl_task_init(struct dpl_task *t, const char *name, dpl_task_func_t func, void *arg, uint8_t prio, dpl_time_t sanity_itvl, dpl_stack_t *stack_bottom, uint16_t stack_size)
Initialize a task.
static int dpl_task_remove(struct dpl_task *t)
removes specified task
os_task_func_t dpl_task_func_t
dpl task function
static uint8_t dpl_task_count(void)
Return the number of tasks initialized.
os_time_t dpl_time_t
dpl time type
os_stack_t dpl_stack_t
dpl stack buffer type