#define IRQ_RESTORE(x) FIXME
#endif /* OS_EMBEDDED */
+
#elif CPU_ARM
#ifdef __IAR_SYSTEMS_ICC__
#define IRQ_ENABLED() \
((bool)(get_CPSR() & 0xb0))
- #define BREAKPOINT /* asm("bkpt 0") DOES NOT WORK */
-
#else /* !__IAR_SYSTEMS_ICC__ */
#define IRQ_DISABLE \
#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)
#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.
*
IRQ_RESTORE(__flags); \
} while (0)
-
-#ifndef BREAKPOINT
-#define BREAKPOINT /* nop */
-#endif
-
-
#endif /* CPU_IRQ_H */