00001 #ifndef _INTERRUPT_H_ 00002 #define _INTERRUPT_H_ 00003 00004 #include <io.h> 00005 00006 #define sei() __asm__ __volatile__ ("sei" ::) 00007 #define cli() __asm__ __volatile__ ("cli" ::) 00008 00009 extern inline void enable_external_int (unsigned char ints) 00010 { 00011 #ifdef EIMSK 00012 outp (ints, EIMSK); 00013 #else 00014 #ifdef GIMSK 00015 outp (ints, GIMSK); 00016 #endif 00017 #endif 00018 } 00019 00020 extern inline void timer_enable_int (unsigned char ints) 00021 { 00022 #ifdef TIMSK 00023 outp (ints, TIMSK); 00024 #endif 00025 } 00026 00027 #endif