#include "types.h"
#include "task.h"
Go to the source code of this file.
Defines | |
#define | EVENT_SUCCESS 0 |
#define | EVENT_NOT_RECEIVED 1 |
#define | EVENT_TIMEOUT 2 |
Functions | |
void | otosSendEvent (OtosTask *pTask, uint16_t events) |
Send event(s) to one or more tasks. If a task waits for them, wake it. | |
uint8_t | otosReceiveEvent (uint16_t events, uint32_t timeout) |
Receive events. |
Definition in file event.h.
|
Receive events. If the events were already received, the function returns immediately. Else it waits the number of otOS timer ticks specified with timeout. If timeout is 0, the function returns immediately, which allows polling for events. If timeout is INFINITE then the function will wait for ever for the events.
Definition at line 170 of file event.c. References g_pRunningTask, and otosBlock. |
|
Send event(s) to one or more tasks. If a task waits for them, wake it.
Definition at line 66 of file event.c. References g_pBlockedQueue, g_performDispatch, g_pReadyQueue, otosScheduler(), and otosSendEventToOneTask(). |