aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/events.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-03-05 10:59:11 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-03-05 10:59:11 +0000
commit5e64a9fec2e17d008b9488faa027d2beaa130a88 (patch)
tree3ab9255111b62d78d755bc51d9e650e63b07be25 /src/include/events.h
parent0778745ee12a4f14c001bd205e05728cc01e9633 (diff)
downloadChibiOS-5e64a9fec2e17d008b9488faa027d2beaa130a88.tar.gz
ChibiOS-5e64a9fec2e17d008b9488faa027d2beaa130a88.tar.bz2
ChibiOS-5e64a9fec2e17d008b9488faa027d2beaa130a88.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@215 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include/events.h')
-rw-r--r--src/include/events.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/include/events.h b/src/include/events.h
index 78b695910..8cfb0109f 100644
--- a/src/include/events.h
+++ b/src/include/events.h
@@ -41,7 +41,7 @@ struct EventListener {
/** Thread interested in the Event Source.*/
Thread *el_listener;
/** Event identifier associated by the thread to the Event Source.*/
- t_eventid el_id;
+ eventid_t el_id;
};
/**
@@ -74,22 +74,22 @@ typedef struct EventSource {
/** Event Handler callback function.*/
-typedef void (*t_evhandler)(t_eventid);
+typedef void (*evhandler_t)(eventid_t);
#ifdef __cplusplus
extern "C" {
#endif
- void chEvtRegister(EventSource *esp, EventListener *elp, t_eventid eid);
+ void chEvtRegister(EventSource *esp, EventListener *elp, eventid_t eid);
void chEvtUnregister(EventSource *esp, EventListener *elp);
- void chEvtClear(t_eventmask mask);
+ void chEvtClear(eventmask_t mask);
void chEvtSend(EventSource *esp);
void chEvtSendI(EventSource *esp);
- t_eventid chEvtWait(t_eventmask ewmask,
- const t_evhandler handlers[]);
+ eventid_t chEvtWait(eventmask_t ewmask,
+ const evhandler_t handlers[]);
#ifdef CH_USE_EVENTS_TIMEOUT
- t_eventid chEvtWaitTimeout(t_eventmask ewmask,
- const t_evhandler handlers[],
- t_time time);
+ eventid_t chEvtWaitTimeout(eventmask_t ewmask,
+ const evhandler_t handlers[],
+ systime_t time);
#endif
#ifdef __cplusplus
}