00001 00038 #ifndef ARCH_COMPILER_GCC_H_INCLUDED 00039 #define ARCH_COMPILER_GCC_H_INCLUDED 00040 00041 #define cpu_irq_disable() asm volatile("cli" ::: "memory") 00042 #define cpu_irq_enable() asm volatile("sei" ::: "memory") 00043 00044 /* 00045 * GCC produces warnings when using pack to set alignment, define the 00046 * reset and set macro to nothing to silence the warning. AVR arch does not 00047 * care about alignment anyway. 00048 */ 00049 #define COMPILER_PACK_RESET(alignment) 00050 #define COMPILER_PACK_SET(alignment) 00051 00052 #endif /* ARCH_COMPILER_GCC_H_INCLUDED */
1.6.3