56 WAITING_EVENT_TIMEOUT,
63 #define TASK_OFS1 30000
64 #define TASK_OFS2 31000
66 #define OS_SUSPEND_TASK( id ) do {\
67 os_task_suspend( id );\
68 if ( id == running_tid ) {\
69 OS_SCHEDULE(TASK_OFS1);\
76 #define OS_RESUME_TASK( id ) do {\
77 os_task_resume( id );\
78 if ( id == running_tid ) {\
79 OS_SCHEDULE(TASK_OFS2);\
84 void os_task_init(
void);
85 uint8_t os_task_highest_prio_ready_task(
void );
86 uint8_t os_task_next_ready_task(
void );
87 void os_task_ready_set( uint8_t tid );
88 void os_task_wait_sem_set( uint8_t tid, Sem_t sem );
89 void os_task_suspend( uint8_t tid );
90 void os_task_resume( uint8_t tid );
91 void os_task_kill( uint8_t tid );
92 uint8_t os_task_prio_get( uint8_t tid );
93 void os_task_clear_wait_queue( uint8_t tid );
94 void os_task_wait_time_set( uint8_t tid, uint8_t
id, uint16_t time );
95 void os_task_wait_event( uint8_t tid, Evt_t eventId, uint8_t waitSingleEvent, uint16_t timeout );
96 void os_task_tick( uint8_t
id, uint16_t tickSize );
97 void os_task_signal_event( Evt_t eventId );
98 void os_task_run(
void );
99 uint16_t os_task_internal_state_get( uint8_t tid );
100 void os_task_internal_state_set( uint8_t tid, uint16_t
state );
101 void os_task_release_waiting_task( Sem_t sem );
102 uint8_t os_task_waiting_this_semaphore( Sem_t sem );
103 MsgQ_t os_task_msgQ_get( uint8_t tid );
104 void os_task_set_wait_queue(uint8_t tid, MsgQ_t queue);
105 MsgQ_t os_task_get_wait_queue(uint8_t tid);
106 void os_task_set_change_event(uint8_t tid, Evt_t event);
107 Evt_t os_task_get_change_event(uint8_t tid);
108 void os_task_set_msg_result(uint8_t tid, uint8_t result);
109 uint8_t os_task_get_msg_result(uint8_t tid);
110 uint16_t os_task_timeout_get(uint8_t tid);
TaskState_t state
current runstate
Definition: os_task.c:43