X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Firq.h;h=dfe16fddc1a9c2c753da34b6bdc35821f7261606;hb=f989f600755eda606c6c9853bb229bec47bebbc0;hp=462034fe669e700099ec2c93f37830dae5f34a77;hpb=42915fdb2ea25ed68b8bb835b78c2bca9b32f1f5;p=bertos.git diff --git a/bertos/cpu/irq.h b/bertos/cpu/irq.h index 462034fe..dfe16fdd 100644 --- a/bertos/cpu/irq.h +++ b/bertos/cpu/irq.h @@ -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") @@ -95,6 +96,11 @@ #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__