aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/avr/irq.h2
-rw-r--r--src/avr/main.c8
2 files changed, 1 insertions, 9 deletions
diff --git a/src/avr/irq.h b/src/avr/irq.h
index 349c4c43..63a1018b 100644
--- a/src/avr/irq.h
+++ b/src/avr/irq.h
@@ -29,7 +29,7 @@ static inline void irq_restore(irqstatus_t flag) {
}
static inline void irq_wait(void) {
- asm("sei\n sleep\n cli" : : : "memory");
+ asm("sei\n nop\n cli" : : : "memory");
}
static inline void irq_poll(void) {
diff --git a/src/avr/main.c b/src/avr/main.c
index 9737c2be..2655d307 100644
--- a/src/avr/main.c
+++ b/src/avr/main.c
@@ -52,14 +52,6 @@ prescaler_init(void)
}
DECL_INIT(prescaler_init);
-// The "sleep" instruction should cause the processor to enter "idle mode"
-void
-sleep_init(void)
-{
- SMCR = 0x01;
-}
-DECL_INIT(sleep_init);
-
// Optimized crc16_ccitt for the avr processor
uint16_t
crc16_ccitt(char *buf, uint8_t len)