Main Page   Compound List   File List   Compound Members   File Members  

interrupt.h

Go to the documentation of this file.
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

Generated at Fri Jul 19 14:55:41 2002 for avrgcc by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001