Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 -------------------*/