diff options
Diffstat (limited to 'ports/AVR/chcore.h')
-rw-r--r-- | ports/AVR/chcore.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ports/AVR/chcore.h b/ports/AVR/chcore.h index 6bb420a5d..b967cb9a0 100644 --- a/ports/AVR/chcore.h +++ b/ports/AVR/chcore.h @@ -208,10 +208,18 @@ asm ("" : : : "r18", "r19", "r20", "r21", "r22", "r23", "r24", \ */
#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 ("sleep"); \
}
|