#include #include #include #include #include #include #include //reference: https://www.avrfreaks.net/forum/sample-project-attiny10 // Wake up by WDT interrupt. // Don't need to do anything here but (auto-) clearing the interrupt flag. EMPTY_INTERRUPT(WDT_vect); /* Delay in powerdown mode. Wake up by watchdog interrupt. */ void delay_power_down_wdt(uint8_t wdto) { wdt_reset(); wdt_enable(wdto); WDTCSR |= (1<