diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-01-10 16:21:27 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-01-10 16:21:27 +0000 |
commit | e2b6b440e12562804f161d8db677554bbd666bd1 (patch) | |
tree | 71ceaeec75f2ecf2d1ab601414cb4190f3f44ca0 /ports/MSP430/chcore.h | |
parent | b7eba42be8e04a6a9cbade60d5ae0190fd34efae (diff) | |
download | ChibiOS-e2b6b440e12562804f161d8db677554bbd666bd1.tar.gz ChibiOS-e2b6b440e12562804f161d8db677554bbd666bd1.tar.bz2 ChibiOS-e2b6b440e12562804f161d8db677554bbd666bd1.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@612 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'ports/MSP430/chcore.h')
-rw-r--r-- | ports/MSP430/chcore.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ports/MSP430/chcore.h b/ports/MSP430/chcore.h index 7f27c3f8b..b090cffba 100644 --- a/ports/MSP430/chcore.h +++ b/ports/MSP430/chcore.h @@ -176,10 +176,18 @@ if (chSchRescRequiredI()) \ */
#define sys_enable_from_isr()
-#if ENABLE_WFI_IDLE != 0
+/**
+ * Disables all the interrupt sources, even those having a priority higher
+ * to the kernel.
+ * In this port it is no different than sys_disable() because the simple
+ * interrupt handling
+ */
+#define sys_disable_all() sys_disable()
+
/**
* This port function is implemented as inlined code for performance reasons.
*/
+#if ENABLE_WFI_IDLE != 0
#define sys_wait_for_interrupt() { \
asm volatile ("wfi"); \
}
|