2 #include <util/delay.h>
4 #include <avr/interrupt.h>
23 set_sleep_mode(SLEEP_MODE_IDLE);
38 // enable PCINT14, so that user can wake up later
40 PCMSK1 |= _BV(PCINT14);
43 set_sleep_mode(SLEEP_MODE_PWR_DOWN);
56 PCMSK1 &= ~_BV(PCINT14);
65 PCMSK1 &= ~_BV(PCINT14);
71 power_usi_disable(); // Once for lifetime