8 #include <avr/interrupt.h>
11 #define wdt_intr_enable(value) \
12 __asm__ __volatile__ ( \
13 "in __tmp_reg__,__SREG__" "\n\t" \
17 "out __SREG__,__tmp_reg__" "\n\t" \
20 : "M" (_SFR_MEM_ADDR(_WD_CONTROL_REG)), \
21 "r" (_BV(_WD_CHANGE_BIT) | _BV(WDE)), \
22 "r" ((uint8_t) ((value & 0x08 ? _WD_PS3_MASK : 0x00) | \
23 _BV(WDIE) | (value & 0x07)) ) \
28 void suspend_power_down(void);
29 bool suspend_wakeup_condition(void);
30 void suspend_wakeup_init(void);