X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Firq.h;h=22d11e1fbedb1ae23514f4ffde30a6c6804b0fc3;hb=ae263f1c0564f616b3b557498532163ffb60595f;hp=3a84dcb33b225c8ea5fc80d3b417d446647bbebb;hpb=5691738d997fcb88e9ff1cb905c4e180ece79867;p=bertos.git diff --git a/bertos/cpu/irq.h b/bertos/cpu/irq.h index 3a84dcb3..22d11e1f 100644 --- a/bertos/cpu/irq.h +++ b/bertos/cpu/irq.h @@ -60,6 +60,7 @@ #define IRQ_RESTORE(x) FIXME #endif /* OS_EMBEDDED */ + #elif CPU_ARM #ifdef __IAR_SYSTEMS_ICC__ @@ -92,8 +93,6 @@ #define IRQ_ENABLED() \ ((bool)(get_CPSR() & 0xb0)) - #define BREAKPOINT /* asm("bkpt 0") DOES NOT WORK */ - #else /* !__IAR_SYSTEMS_ICC__ */ #define IRQ_DISABLE \ @@ -166,7 +165,6 @@ #elif CPU_DSP56K - #define BREAKPOINT asm(debug) #define IRQ_DISABLE do { asm(bfset #0x0200,SR); asm(nop); } while (0) #define IRQ_ENABLE do { asm(bfclr #0x0200,SR); asm(nop); } while (0) @@ -272,9 +270,5 @@ } while (0) -#ifndef BREAKPOINT -#define BREAKPOINT /* nop */ -#endif - #endif /* CPU_IRQ_H */