| 77 |
|
|
| 78 |
#define _SLEEP_CONTROL_REG SMCR |
#define _SLEEP_CONTROL_REG SMCR |
| 79 |
|
|
| 80 |
|
#elif defined(__AVR_AT94K__) |
| 81 |
|
|
| 82 |
|
#define _SLEEP_CONTROL_REG MCUR |
| 83 |
|
|
| 84 |
#else |
#else |
| 85 |
|
|
| 86 |
#define _SLEEP_CONTROL_REG MCUCR |
#define _SLEEP_CONTROL_REG MCUCR |
| 125 |
*/ |
*/ |
| 126 |
#define SLEEP_MODE_IDLE 0 |
#define SLEEP_MODE_IDLE 0 |
| 127 |
|
|
| 128 |
#if !defined(__AVR_ATtiny2313__) |
#if !defined(__AVR_ATtiny2313__) && !defined(__AVR_AT94K__) |
| 129 |
/* no ADC in ATtiny2313, SM0 is alternative powerdown mode */ |
/* no ADC in ATtiny2313, SM0 is alternative powerdown mode */ |
| 130 |
|
/* no ADC in AT94K, setting SM0 only is reserved */ |
| 131 |
# define SLEEP_MODE_ADC _BV(SM0) |
# define SLEEP_MODE_ADC _BV(SM0) |
| 132 |
#endif /* !defined(__AVR_ATtiny2313__) */ |
#endif /* !defined(__AVR_ATtiny2313__) && !defined(__AVR_AT94K__) */ |
| 133 |
|
|
| 134 |
#define SLEEP_MODE_PWR_DOWN _BV(SM1) |
#define SLEEP_MODE_PWR_DOWN _BV(SM1) |
| 135 |
|
|