Keil Logo


#include <rtx51tny.h>

char os_wait1 (
  unsigned char event_sel);          /* events to wait for */

The os_wait1 function halts the current task and waits for an event to occur. The os_wait1 function is a subset of the os_wait function and does not support all of the events that os_wait offers. The event_sel argument specifies the event to wait for and may have only the value K_SIG which waits for a signal.


  • This function is part of the RTX51 Tiny Real-Time Operating System which is included only in the PK51 Professional Developer's Kit.
  • Refer to Events for more information about K_SIG.
Return Value

When one of the specified events occurs, the task is put in the READY state. When the task resumes execution, the manifest constant that identifies the event that restarted the task is returned by os_wait1. Possible return values are:

Return Value Description
RDY_EVENT The task's ready flag was set by either the os_set_ready or isr_set_ready routines.
SIG_EVENT A signal was received.
NOT_OK The value of the event_sel argument is invalid.

See os_wait.

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.