Lightweight events can be used either to synchronize two tasks or to synchronize a task and an ISR (Interrupt Service Routine). The lightweight event component consists of lightweight event groups, which are groupings of event bits. Any task can wait for event bits in a lightweight event group. If the event bits are not set, the task blocks. Any other task or ISR can set the event bits. When the event bits are set, MQX puts all waiting tasks, whose waiting condition is met, into the task's ready queue. If the lightweight event group has autoclearing event bits, MQX Lite clears the event bits as soon as they are set and makes one task ready.
There is no difference between Lightweight Events in the standard MQX and the MQX Lite. This is the list of Lightweight Event component API functions:
(_lwevent_ prefix) is stated together with detailed description of each function in the Freesale MQX™ Lite RTOS Reference Manual (MQXLITERM).
See the LWEVENT or LWDEMO MQX Lite example code for the demonstration of the correct LW Event usage. See MQX Lite Demo Applications for information about the location of MQX Lite examples.