Keil RTX51 Manual page 36

Table of Contents

Advertisement

36
os_wait1
Summary:
Description:
Return Value:
4
See Also:
Example:
#include <rtx51tny.h>
char os_wait1 (
unsigned char event_sel);
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 func-
tion and does not allow all of the events that os_wait offers. The
event_sel argument specifies the event to wait for and can have
only the value K_SIG which will wait for a signal.
When the signal events occurs, the task is enabled for execution.
Execution is restored and a manifest constant that identifies the
event that restarted the task is returned by the os_wait1 function.
Possible return values are:
Return Value
Description
SIG_EVENT
A signal was received.
NOT_OK
The value of the event_sel argument is invalid.
os_wait, os_wait2
See os_wait.
RTX51 Tiny Function Library
/* events to wait for */

Advertisement

Table of Contents
loading

Table of Contents