Contiki 2.5
sys-interrupt.h
1 #ifndef __SYS_INTERRUPT_H__QIHZ66NP8K__
2 #define __SYS_INTERRUPT_H__QIHZ66NP8K__
3 
4 
5 /* Returns true if it handled an activbe interrupt */
6 typedef int (*SystemInterruptFunc)();
7 
8 typedef struct _SystemInterruptHandler SystemInterruptHandler;
9 struct _SystemInterruptHandler
10 {
11  SystemInterruptHandler *next;
12  SystemInterruptFunc handler;
13 };
14 
15 
16 void
17 sys_interrupt_enable();
18 
19 void
20 sys_interrupt_disable();
21 
22 void
23 sys_interrupt_append_handler(SystemInterruptHandler *handler);
24 
25 void
26 sys_interrupt_prepend_handler(SystemInterruptHandler *handler);
27 
28 void
29 sys_interrupt_remove_handler(SystemInterruptHandler *handler);
30 
31 #endif /* __SYS_INTERRUPT_H__QIHZ66NP8K__ */