Import of the contiki-2.x development code from the SICS internal CVS server
This commit is contained in:
commit
c9e808d638
671 changed files with 95332 additions and 0 deletions
39
cpu/avr/dev/compiler.h
Normal file
39
cpu/avr/dev/compiler.h
Normal file
|
@ -0,0 +1,39 @@
|
|||
#ifndef __COMPILER_H__
|
||||
#define __COMPILER_H__
|
||||
|
||||
#ifdef __IMAGECRAFT__
|
||||
|
||||
|
||||
// choose your AVR device here
|
||||
#include <iom128.h>
|
||||
|
||||
#include <macros.h>
|
||||
|
||||
#define outp(val, reg) (reg = val)
|
||||
#define inp(reg) (reg)
|
||||
|
||||
#define cli() CLI()
|
||||
#define sei() SEI()
|
||||
#define cbi(reg, bit) (reg &= ~BIT(bit))
|
||||
#define sbi(reg, bit) (reg |= BIT(bit))
|
||||
|
||||
#define SIGNAL(x) void x(void)
|
||||
|
||||
#define nop() NOP()
|
||||
|
||||
|
||||
#else /* --- GCC --- */
|
||||
#ifndef __AVR_ATmega128__
|
||||
#define __AVR_ATmega128__
|
||||
#endif
|
||||
#include <avr/signal.h>
|
||||
#include <avr/interrupt.h>
|
||||
#include <avr/io.h>
|
||||
|
||||
#define nop() asm volatile("nop\n\t"::);
|
||||
|
||||
#endif /* Compiler Used */
|
||||
|
||||
|
||||
|
||||
#endif /* __COMPILER_H__ */
|
Loading…
Add table
Add a link
Reference in a new issue