mirror of
git://soft.sys114.com/klipper
synced 2026-02-13 10:10:33 +09:00
irq: Support sleeping when mcu is idle
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -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) {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user