|
| os_wait1| Summary | |
#include <rtx51tny.h>
char os_wait1 (
unsigned char event_sel); /* events to wait for */
| | Description | | 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. Note - This function is part of the RTX51 Tiny Real-Time Operating System which is included only with the PK51 Professional Developer's Kit.
- Refer to Events for more information about K_IVL, K_TMO, and 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. |
| | Example | | See os_wait. |
|
|