sys-interrupt.h

00001 #ifndef __SYS_INTERRUPT_H__QIHZ66NP8K__
00002 #define __SYS_INTERRUPT_H__QIHZ66NP8K__
00003 
00004 
00005 /* Returns true if it handled an activbe interrupt */
00006 typedef int (*SystemInterruptFunc)();
00007 
00008 typedef struct _SystemInterruptHandler SystemInterruptHandler;
00009 struct _SystemInterruptHandler
00010 {
00011   SystemInterruptHandler *next;
00012   SystemInterruptFunc handler;
00013 };
00014 
00015 
00016 void
00017 sys_interrupt_enable();
00018 
00019 void
00020 sys_interrupt_disable();
00021 
00022 void
00023 sys_interrupt_append_handler(SystemInterruptHandler *handler);
00024 
00025 void
00026 sys_interrupt_prepend_handler(SystemInterruptHandler *handler);
00027 
00028 void
00029 sys_interrupt_remove_handler(SystemInterruptHandler *handler);
00030 
00031 #endif /* __SYS_INTERRUPT_H__QIHZ66NP8K__ */

Generated on Mon Apr 11 14:23:34 2011 for Contiki 2.5 by  doxygen 1.6.1