aboutsummaryrefslogtreecommitdiffstats
path: root/src/avr/irq.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/avr/irq.h')
-rw-r--r--src/avr/irq.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/avr/irq.h b/src/avr/irq.h
index 33172c0f..349c4c43 100644
--- a/src/avr/irq.h
+++ b/src/avr/irq.h
@@ -28,6 +28,10 @@ static inline void irq_restore(irqstatus_t flag) {
SREG = flag;
}
+static inline void irq_wait(void) {
+ asm("sei\n sleep\n cli" : : : "memory");
+}
+
static inline void irq_poll(void) {
}