At least in avr-libc 1.6.7 the following sleep modes are defined for
the ATtiny85:
#define SLEEP_MODE_IDLE 0
#define SLEEP_MODE_ADC _BV(SM0)
#define SLEEP_MODE_PWR_DOWN _BV(SM1)
#define SLEEP_MODE_PWR_SAVE (_BV(SM0) | _BV(SM1))
The latest revision of datasheet (rev K, Jan 08) says that there are
only three sleep modes:
SM1 SM0 Sleep Mode
0 0 Idle
0 1 ADC Noise Reduction
1 0 Power-down
1 1 Reserved
Is this a bug in avr-libc or do some of the newer hardware revisions
also have power save mode? FYI, the parts I'm currently working with
are ATtiny85V-10PU, date code 0939.
CK
--
GDB has a 'break' feature; why doesn't it have 'fix' too?
_______________________________________________
AVR-chat mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-chat