X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fmware%2Fevent.h;h=ab8afe039e0f05febe706ce95bf52d0bc99e7744;hb=efaaa302de8fec1522eaa5a80ea750214028b3b4;hp=5fa996c684222c5654984d26522a4e68941bde82;hpb=d62963b4a64efe8d2917f489fefaf586a9a99126;p=bertos.git diff --git a/bertos/mware/event.h b/bertos/mware/event.h index 5fa996c6..ab8afe03 100644 --- a/bertos/mware/event.h +++ b/bertos/mware/event.h @@ -27,8 +27,7 @@ * the GNU General Public License. * * Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/) - * Copyright 1999, 2001, 2003 Bernardo Innocenti - * + * Copyright 1999, 2001, 2003 Bernie Innocenti * --> * * \brief Events handling @@ -37,15 +36,14 @@ * a user defined action calling a hook function. * * \version $Id$ - * - * \author Bernardo Innocenti + * \author Bernie Innocenti */ #ifndef KERN_EVENT_H #define KERN_EVENT_H #include -#include +#include "cfg/cfg_kern.h" #if CONFIG_KERNEL #if defined(CONFIG_KERN_SIGNALS) && CONFIG_KERN_SIGNALS @@ -98,11 +96,11 @@ INLINE Event event_createNone(void) } /** Initialize the event \a e with a software interrupt (call function \a f, with parameter \a u) */ -#define event_initSoftInt(e,f,u) \ +#define event_initSoftint(e,f,u) \ ((e)->action = event_hook_softint,(e)->Ev.Int.func = (f), (e)->Ev.Int.user_data = (u)) -/** Same as event_initSoftInt(), but returns the initialized event */ -INLINE Event event_createSoftInt(Hook func, void *user_data) +/** Same as event_initSoftint(), but returns the initialized event */ +INLINE Event event_createSoftint(Hook func, void *user_data) { Event e; e.action = event_hook_softint; @@ -111,6 +109,9 @@ INLINE Event event_createSoftInt(Hook func, void *user_data) return e; } +// OBSOLETE names +#define event_createSoftInt event_createSoftint +#define event_initSoftInt event_initSoftint #if defined(CONFIG_KERN_SIGNALS) && CONFIG_KERN_SIGNALS