Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.
Dependents: 1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB
Fork of mbed by
Diff: LPC2368/core_arm7.h
- Revision:
- 44:24d45a770a51
- Parent:
- 40:976df7c37ad5
--- a/LPC2368/core_arm7.h Fri Oct 26 17:40:46 2012 +0100 +++ b/LPC2368/core_arm7.h Wed Nov 21 10:49:56 2012 +0000 @@ -178,6 +178,10 @@ #define __STREXH(value, ptr) __strex(value, ptr) #define __STREXW(value, ptr) __strex(value, ptr) +#define __disable_irq() unsigned tmp_IntEnable = LPC_VIC->IntEnable; \ + LPC_VIC->IntEnClr = 0xffffffff + +#define __enable_irq() LPC_VIC->IntEnable = tmp_IntEnable #elif (defined (__ICCARM__)) /*------------------ ICC Compiler -------------------*/