diff options
Diffstat (limited to 'src/arch/arduino-nano/arch.cc')
-rw-r--r-- | src/arch/arduino-nano/arch.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/arch/arduino-nano/arch.cc b/src/arch/arduino-nano/arch.cc index 16d09fb..fda518c 100644 --- a/src/arch/arduino-nano/arch.cc +++ b/src/arch/arduino-nano/arch.cc @@ -55,6 +55,14 @@ void Arch::idle_loop(void) } } +void Arch::idle(void) +{ + SMCR = _BV(SE); + asm("sleep"); + SMCR = 0; + asm("wdr"); +} + void Arch::delay_us(unsigned char const us) { __builtin_avr_delay_cycles(1600); |