X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Firq.h;h=0d0d46861646dda34877b8971b16f0fc103b5573;hb=1cdcadf620678aca50bc36a0ff24986140720f3b;hp=f47d708297868e019082898e3d77f4f5df491399;hpb=553d3b753ffdf718b585018b4b6730f32c98f9a1;p=bertos.git diff --git a/bertos/cpu/irq.h b/bertos/cpu/irq.h index f47d7082..0d0d4686 100644 --- a/bertos/cpu/irq.h +++ b/bertos/cpu/irq.h @@ -60,9 +60,6 @@ #define IRQ_RESTORE(x) FIXME #endif /* OS_EMBEDDED */ - #ifdef __GNUC__ - #define BREAKPOINT asm volatile ("int 3" ::) - #endif #elif CPU_ARM @@ -96,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 \ @@ -168,13 +163,8 @@ #define IRQ_ENABLED() FIXME #endif /* OS_EMBEDDED */ - #ifdef __GNUC__ - #define BREAKPOINT asm volatile ("twge 2,2" ::) - #endif - #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) @@ -262,10 +252,6 @@ #define IRQ_ASSERT_DISABLED() do {} while(0) #endif -// OBSOLETE names -#define ASSERT_IRQ_ENABLED() IRQ_ASSERT_ENABLED() -#define ASSERT_IRQ_DISABLED() IRQ_ASSERT_DISABLED() - /** * Execute \a CODE atomically with respect to interrupts. * @@ -279,10 +265,4 @@ IRQ_RESTORE(__flags); \ } while (0) - -#ifndef BREAKPOINT -#define BREAKPOINT /* nop */ -#endif - - #endif /* CPU_IRQ_H */