Enable radio stats in sensor cgi as default
[contiki-2.x.git] / cpu / avr / dev / compiler.h
blob5625752e82f6434d7343c8795a0f77cbe059f43a
1 #ifndef __COMPILER_H__
2 #define __COMPILER_H__
4 #ifdef __IMAGECRAFT__
7 // choose your AVR device here
8 #include <iom128.h>
10 #include <macros.h>
12 #define outp(val, reg) (reg = val)
13 #define inp(reg) (reg)
15 #define cli() CLI()
16 #define sei() SEI()
17 #define cbi(reg, bit) (reg &= ~BIT(bit))
18 #define sbi(reg, bit) (reg |= BIT(bit))
20 #define SIGNAL(x) void x(void)
22 #define nop() NOP()
25 #else /* --- GCC --- */
26 #ifndef __AVR_ATmega128__
27 #define __AVR_ATmega128__
28 #endif
29 #include <avr/signal.h>
30 #include <avr/interrupt.h>
31 #include <avr/io.h>
33 #define nop() asm volatile("nop\n\t"::);
35 #endif /* Compiler Used */
39 #endif /* __COMPILER_H__ */