11.07.2015 Views

IAR PowerPac RTOS User Guide

IAR PowerPac RTOS User Guide

IAR PowerPac RTOS User Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Additional InformationIf none of the specified events are signaled, the task is suspended. The first of the specified events will wake the task.These events are signaled by another task, a S/W timer or an interrupt handler. Any bit in the 8-bit event mask mayenable the corresponding event.ExampleOS_WaitEvent(3); /* Wait for event 1 or 2 to be signaled */For a further example, see OS_SignalEvent().OS_WaitSingleEvent()DescriptionWaits for one of the events specified by the bitmask and clears only that event after it occurs.Prototypechar OS_WaitSingleEvent (char EventMask);ParameterDescriptionEventMaskTable 83: OS_WaitSingleEvent() parameter listReturn valueAll masked events that have actually occurred.Additional InformationIf none of the specified events are signaled, the task is suspended. The first of the specified events will wake the task.These events are signaled by another task, a S/W timer, or an interrupt handler. Any bit in the 8-bit event mask mayenable the corresponding event. All unmasked events remain unchanged.ExampleOS_WaitSingleEvent(3); /* Wait for event 1 or 2 to be signaled */OS_WaitEventTimed()DescriptionWaits for the specified events for a given time, and clears the event memory after an event occurs.Prototypechar OS_WaitEventTimed (char EventMask,OS_TIME TimeOut);ParameterDescriptionEventMaskTimeoutTable 84: OS_WaitEventTimed() parameter listReturn valueThe events that have actually occurred within the specified time.0 if no events were signaled in time.Additional InformationThe events that the task will be waiting for.The events that the task will be waiting for.Maximum time in timer ticks until the events have to be signaled.The data type OS_TIME defaults to an integer, therefore valid values are1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!