#define IRQ_RESTORE(x) FIXME
#endif /* OS_EMBEDDED */
-#elif CPU_ARM_LM3S1968
+#elif CPU_CM3
+ /* Cortex-M3 */
#define IRQ_DISABLE asm volatile ("cpsid i" : : : "memory", "cc")
#define IRQ_ENABLE asm volatile ("cpsie i" : : : "memory", "cc")
#define IRQ_ENABLED() (!CPU_READ_FLAGS())
+ /* TODO: context switch is not yet supported */
+ #define DECLARE_ISR_CONTEXT_SWITCH(func) void func(void)
+
+ /* TODO: context switch is not yet supported */
+ #define ISR_PROTO_CONTEXT_SWITCH(func) void func(void)
#elif CPU_ARM
#ifdef __IAR_SYSTEMS_ICC__