compiler.h

00001 #ifndef __COMPILER_H__
00002 #define __COMPILER_H__
00003 
00004 #ifdef __IMAGECRAFT__
00005 
00006 
00007 // choose your AVR device here
00008 #include <iom128.h>
00009 
00010 #include <macros.h>
00011 
00012 #define outp(val, reg)  (reg = val)
00013 #define inp(reg)        (reg)
00014 
00015 #define cli()           CLI()
00016 #define sei()           SEI()
00017 #define cbi(reg, bit)   (reg &= ~BIT(bit))
00018 #define sbi(reg, bit)   (reg |= BIT(bit))
00019 
00020 #define SIGNAL(x)       void x(void)  
00021 
00022 #define nop() NOP()
00023 
00024 
00025 #else /* --- GCC --- */
00026 #ifndef __AVR_ATmega128__
00027 #define __AVR_ATmega128__
00028 #endif
00029 #include <avr/signal.h>
00030 #include <avr/interrupt.h>
00031 #include <avr/io.h>
00032 
00033 #define nop() asm volatile("nop\n\t"::);
00034 
00035 #endif /* Compiler Used */
00036 
00037 
00038 
00039 #endif /* __COMPILER_H__ */

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