mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 15:14:00 -06:00
irq: Support sleeping when mcu is idle
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
969485c754
commit
118fd21cb8
13 changed files with 101 additions and 10 deletions
|
@ -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) {
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue