SimpleSleep
An Arduino library for simple means of putting your Arduino into low power sleep modes.
ATTiny13.h
1 #ifndef SS_ATtiny13_h
2 #define SS_ATtiny13_h
3 
4  #if defined (__AVR_ATtiny13__) || defined (__AVR_ATtiny13A__)
5  #define SS_SUPPORTED_CHIP
6  #define SS_ATTiny13
7 
8  // Rename these for Tiny13
9  // (Tiny13 name on the right, "standard" (MegaX8) name on the left)
10  #define WDTCSR WDTCR
11  #define WDIE WDTIE
12 
13  // While we do have a WDT interrupt, it uses quite a lot of
14  #define WDT_HAS_INTERRUPT 1
15  #if ! defined( WDT_HAS_INTERRUPT ) && ! defined( NO_MILLIS )
16  #define WDT_HAS_INTERRUPT 0
17  #endif
18 
19  #endif
20 #endif