49 #define EVENT_OFS1 10000
50 #define EVENT_OFS2 11000
51 #define EVENT_OFS3 12000
53 #define OS_WAIT_SINGLE_EVENT(x,timeout) do {\
54 os_wait_event(running_tid,x,1,timeout);\
55 OS_SCHEDULE(EVENT_OFS1);\
63 #define OS_WAIT_MULTIPLE_EVENTS( waitAll, args...) do {\
64 os_wait_multiple(waitAll, args, NO_EVENT);\
65 OS_SCHEDULE(EVENT_OFS2);\
73 #define OS_SIGNAL_EVENT(event) do {\
74 os_signal_event(event);\
75 os_event_set_signaling_tid( event, running_tid );\
76 OS_SCHEDULE(EVENT_OFS3);\
82 #define OS_INT_SIGNAL_EVENT(event) do {\
83 os_signal_event(event);\
84 os_event_set_signaling_tid( event, ISR_TID );\
87 #define OS_GET_TASK_TIMEOUT_VALUE() os_task_timeout_get(running_tid)
90 #define EVENT_QUEUE_SIZE ((N_TOTAL_EVENTS/9)+1)
92 #define EVENT_QUEUE_SIZE 1
96 typedef uint8_t Evt_t;
99 uint8_t eventList[ EVENT_QUEUE_SIZE ];
103 void os_event_init();
104 void os_wait_event( uint8_t tid, Evt_t ev, uint8_t waitSingleEvent, uint16_t timeout );
105 void os_wait_multiple( uint8_t waitAll, ...);
106 void os_signal_event( Evt_t ev );
107 void os_event_set_signaling_tid( Evt_t ev, uint8_t tid );
Evt_t event_last_signaled_get(void)
Definition: os_event.c:149
Definition: os_event.h:98