mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-26 19:29:24 +00:00
cfd985c837
and to produce code that works with THUMB.
32 lines
653 B
C
32 lines
653 B
C
#ifndef __SYS_INTERRUPT_H__QIHZ66NP8K__
|
|
#define __SYS_INTERRUPT_H__QIHZ66NP8K__
|
|
|
|
|
|
/* Returns true if it handled an activbe interrupt */
|
|
typedef int (*SystemInterruptFunc)();
|
|
|
|
typedef struct _SystemInterruptHandler SystemInterruptHandler;
|
|
struct _SystemInterruptHandler
|
|
{
|
|
SystemInterruptHandler *next;
|
|
SystemInterruptFunc handler;
|
|
};
|
|
|
|
|
|
void
|
|
sys_interrupt_enable();
|
|
|
|
void
|
|
sys_interrupt_disable();
|
|
|
|
void
|
|
sys_interrupt_append_handler(SystemInterruptHandler *handler);
|
|
|
|
void
|
|
sys_interrupt_prepend_handler(SystemInterruptHandler *handler);
|
|
|
|
void
|
|
sys_interrupt_remove_handler(SystemInterruptHandler *handler);
|
|
|
|
#endif /* __SYS_INTERRUPT_H__QIHZ66NP8K__ */
|