37 #ifndef _os_applapi_h__
38 #define _os_applapi_h__
67 #define task_open() OS_BEGIN
88 #define task_close() OS_END
112 #define task_wait(x) OS_WAIT_TICKS(x,0)
137 #define task_wait_id(id,x) OS_WAIT_TICKS(x,id)
187 #define task_suspend( id ) OS_SUSPEND_TASK( id )
236 #define task_resume( id ) OS_RESUME_TASK( id )
263 #define event_wait(event) OS_WAIT_SINGLE_EVENT(event,0)
293 #define event_wait_timeout(event,timeout) OS_WAIT_SINGLE_EVENT(event,timeout)
326 #define event_get_timeout() OS_GET_TASK_TIMEOUT_VALUE()
356 #define event_wait_multiple(waitAll, args...) OS_WAIT_MULTIPLE_EVENTS( waitAll, args)
383 #define event_signal(event) OS_SIGNAL_EVENT(event)
407 #define event_ISR_signal(event) OS_INT_SIGNAL_EVENT(event)
434 #define sem_wait(sem) OS_WAIT_SEM(sem)
461 #define sem_signal(sem) OS_SIGNAL_SEM(sem)
491 #define sem_ISR_signal(sem) OS_SIGNAL_SEM_NO_SCHEDULE(sem)
553 #define msg_post(task_id, msg) OS_MSG_Q_POST(task_id, msg, 0, 0, 0)
615 #define msg_post_async(task_id, msg) OS_MSG_Q_POST(task_id, msg, 0, 0, 1)
679 #define msg_post_in(task_id, msg, delay) OS_MSG_Q_POST(task_id, msg, delay, 0, 0)
742 #define msg_post_every(task_id, msg, period) OS_MSG_Q_POST(task_id, msg, period, period, 0)
804 #define msg_receive( task_id, pMsg ) OS_MSG_Q_RECEIVE( task_id, pMsg, 0 )
870 #define msg_receive_async( task_id, pMsg ) OS_MSG_Q_RECEIVE( task_id, pMsg, 1 )
879 uint8_t os_get_running_tid(
void);
881 uint8_t
task_create( taskproctype taskproc,
void *data, uint8_t prio,
Msg_t* msgPool, uint8_t poolSize, uint16_t msgSize );
889 TaskState_t task_state_get(uint8_t tid);
void os_start(void)
Definition: os_kernel.c:121
void os_tick(void)
Definition: os_kernel.c:149
void os_init(void)
Definition: os_kernel.c:64
void * task_get_data()
Definition: os_task.c:270
uint8_t task_create(taskproctype taskproc, void *data, uint8_t prio, Msg_t *msgPool, uint8_t poolSize, uint16_t msgSize)
Definition: os_task.c:134
Evt_t event_create(void)
Definition: os_event.c:81
void os_sub_nTick(uint8_t id, uint16_t nTicks)
Definition: os_kernel.c:205
void task_kill(uint8_t tid)
Definition: os_task.c:234
void os_cbkSleep(void)
Definition: os_cbk.c:49
Sem_t sem_bin_create(uint8_t initial)
Definition: os_sem.c:95
Sem_t sem_counting_create(uint8_t max, uint8_t initial)
Definition: os_sem.c:120
uint8_t event_signaling_taskId_get(Evt_t ev)
Definition: os_event.c:120
Definition: os_msgqueue.h:50
void os_sub_tick(uint8_t id)
Definition: os_kernel.c:176