diff options
Diffstat (limited to 'demos/LPC214x-GCC/chcore.h')
-rw-r--r-- | demos/LPC214x-GCC/chcore.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/demos/LPC214x-GCC/chcore.h b/demos/LPC214x-GCC/chcore.h index 6dfdae6e9..bc49994ce 100644 --- a/demos/LPC214x-GCC/chcore.h +++ b/demos/LPC214x-GCC/chcore.h @@ -76,9 +76,13 @@ typedef struct { }
#endif
+#ifdef THUMB
+extern void chSysLock(void);
+extern void chSysUnlock(void);
+#else /* !THUMB */
#define chSysLock() asm("msr CPSR_c, #0x9F")
-
#define chSysUnlock() asm("msr CPSR_c, #0x1F")
+#endif /* THUMB */
#define INT_REQUIRED_STACK 0x40 // Must include registers and stack frames.
|