AVR C Runtime Library - Bugs: bug #33230, Sleep modes have incorrect names...
You are not allowed to post comments on this tracker with your current authentication level.
bug #33230: Sleep modes have incorrect names for ATtiny261/461/861
Submitter: | Luca Matteini <loucypher> | ||
Submitted: | Wed 04 May 2011 04:27:20 PM UTC | ||
Category: | Header | Severity: | 3 - Normal |
Priority: | 5 - Normal | Item Group: | Header files |
Status: | Fixed | Assigned to: | arcanum |
Percent Complete: | 100% | Open/Closed: | Closed |
Release: | 1.7.1 | Fixed Release: | 1.7.2 |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
Follow 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2011-05-09 | arcanum | Status | None | Fixed | |
Percent Complete | 0% | 100% | |||
Assigned to | None | arcanum | |||
Open/Closed | Open | Closed | |||
Fixed Release | None | 1.7.2 |
Powered by Savane 3.13-caa5.
Corresponding source code
Sleep mode definitions for ATtiny261/461/861, defined in sleep.h, have an incorrect entry
SLEEP_MODE_PWR_SAVE
while for compatibility with Atmel data sheet (doc8197.pdf, rev.B), and similar name on other devices, it should be
SLEEP_MODE_STANDBY
as it is for ATtiny26
Practically, the conditionals in sleep.h for
-------------------------------------
|| defined(_AVR_ATtiny261_)
|| defined(_AVR_ATtiny261A_)
|| defined(_AVR_ATtiny461_)
|| defined(_AVR_ATtiny461A_)
|| defined(_AVR_ATtiny861_)
|| defined(_AVR_ATtiny861A_)
-------------------------------------
should be moved in the same conditional test for ATtiny26