X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fmware%2Fevent.h;h=86ec620fc2a179c2be6cf4a3e352f91581472a2b;hb=23f95752ffe03a5f0c262b1f896211aedb185dda;hp=a357bb18e6ad7e1ae7523e8aad83fe4a697fa2a6;hpb=c22fe24a0da896a52dbc3882390ec18a440ef56a;p=bertos.git diff --git a/bertos/mware/event.h b/bertos/mware/event.h index a357bb18..86ec620f 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 @@ -36,18 +35,17 @@ * This module implements a common system for executing * 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 "cfg/cfg_kern.h" +#include "cfg/cfg_proc.h" +#include "cfg/cfg_signal.h" -#if CONFIG_KERNEL +#if CONFIG_KERN #if defined(CONFIG_KERN_SIGNALS) && CONFIG_KERN_SIGNALS #include #endif @@ -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,7 +109,6 @@ INLINE Event event_createSoftInt(Hook func, void *user_data) return e; } - #if defined(CONFIG_KERN_SIGNALS) && CONFIG_KERN_SIGNALS /** Initialize the event \a e with a signal (send signal \a s to process \a p) */