aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/include/chevents.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/include/chevents.h')
-rw-r--r--os/rt/include/chevents.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/os/rt/include/chevents.h b/os/rt/include/chevents.h
index e58836f2e..8ac91d256 100644
--- a/os/rt/include/chevents.h
+++ b/os/rt/include/chevents.h
@@ -188,7 +188,7 @@ static inline void chEvtObjectInit(event_source_t *esp) {
*/
static inline void chEvtRegisterMask(event_source_t *esp,
event_listener_t *elp,
- eventflags_t events) {
+ eventmask_t events) {
chEvtRegisterMaskWithFlags(esp, elp, events, (eventflags_t)-1);
}
@@ -236,7 +236,7 @@ static inline bool chEvtIsListeningI(event_source_t *esp) {
*/
static inline void chEvtBroadcast(event_source_t *esp) {
- chEvtBroadcastFlags(esp, 0);
+ chEvtBroadcastFlags(esp, (eventflags_t)0);
}
/**
@@ -253,7 +253,7 @@ static inline void chEvtBroadcast(event_source_t *esp) {
*/
static inline void chEvtBroadcastI(event_source_t *esp) {
- chEvtBroadcastFlagsI(esp, 0);
+ chEvtBroadcastFlagsI(esp, (eventflags_t)0);
}
#endif /* CH_CFG_USE_EVENTS == TRUE */