Fix errors in nightly test.
[bertos.git] / bertos / cpu / irq.h
index 462034fe669e700099ec2c93f37830dae5f34a77..dfe16fddc1a9c2c753da34b6bdc35821f7261606 100644 (file)
@@ -63,7 +63,8 @@
                #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__