Move cfg/config.h to appconfig.h.
[bertos.git] / kern / event.c
1 /*!
2  * \file
3  * <!--
4  * Copyright 2005 Develer S.r.l. (http://www.develer.com/)
5  * This file is part of DevLib - See README.devlib for information.
6  * -->
7  *
8  * \brief Events handling implementation
9  *
10  * \version $Id$
11  *
12  * \author Giovanni Bajo <rasky@develer.com>
13  */
14
15 /*#*
16  *#* $Log$
17  *#* Revision 1.2  2005/11/04 16:20:02  bernie
18  *#* Fix reference to README.devlib in header.
19  *#*
20  *#* Revision 1.1  2005/01/24 04:19:06  bernie
21  *#* Function pointer based event dispatching.
22  *#*
23  *#* Revision 1.1  2005/01/18 19:39:42  rasky
24  *#* Cambiata la logica di dispatching degli eventi: si utilizza puntatori a funzione invece di inlinare i controlli
25  *#*
26  *#*/
27
28 #include "event.h"
29
30 void event_hook_ignore(Event *e)
31 {
32 }
33
34 #if defined(CONFIG_KERN_SIGNALS) && CONFIG_KERN_SIGNALS
35 void event_hook_signal(Event *e)
36 {
37         sig_signal((e)->Ev.Sig.sig_proc, (e)->Ev.Sig.sig_bit);
38 }
39 #endif
40
41 void event_hook_softint(Event *e)
42 {
43         e->Ev.Int.func(e->Ev.Int.user_data);
44 }