event.h File Reference
#include "cfg/cfg_proc.h"#include "cfg/cfg_signal.h"#include "cfg/cfg_timer.h"#include <cfg/compiler.h>#include <cpu/power.h>Go to the source code of this file.
Defines | |
| #define | event_initNone(e) ((e)->action = event_hook_ignore) |
| Initialize the event e as a no-op. | |
| #define | event_initSoftint(e, f, u) ((e)->action = event_hook_softint,(e)->Ev.Int.func = (f), (e)->Ev.Int.user_data = (u)) |
| Initialize the event e with a software interrupt (call function f, with parameter u). | |
Functions | |
| Event | event_createNone (void) |
| Same as event_initNone(), but returns the initialized event. | |
| Event | event_createSoftint (Hook func, void *user_data) |
| Same as event_initSoftint(), but returns the initialized event. | |
| Event | event_createGeneric (void) |
| Create a generic sleepable event. | |
| void | event_wait (Event *e) |
| Wait the completion of event e. | |
| int | event_select (Event **evs, int n, ticks_t timeout) |
| Wait for multiple events. | |
| bool | event_waitTimeout (Event *e, ticks_t timeout) |
| Wait the completion of event e or timeout elapses. | |
| void | event_do (struct Event *e) |
| Trigger an event. | |
Detailed Description
Definition in file event.h.
