bugAVR C Runtime Library - Bugs: bug #6352, <avr/sleep.h> does not set...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #6352: <avr/sleep.h> does not set sleep mode properly for ATmega162, ATmega161, and ATmega8515

Submitter:  Invalid User ID <#25013>
Submitted:  Tue 04 Nov 2003 03:05:25 AM UTC
   
 
Category:  Header Severity:  6 - Security
Priority:  9 - Immediate Item Group:  None
Status:  Fixed Assigned to:  arcanum
Percent Complete:  100% Open/Closed:  Closed
Release:  None Fixed Release:  None

Tue 21 Dec 2004 06:46:53 PM UTC, comment #3: 

The solution for the mega169 (in comments) is the same to handle bug #10489.

Eric Weddington <arcanum>
Group administrator
Mon 29 Dec 2003 04:35:38 PM UTC, comment #2: 

sorry, not EMCUCR but SMCR on ATmega169

Anonymous
Mon 29 Dec 2003 04:25:03 PM UTC, comment #1: 

for ATmega169 SM* are all in EMCUCR.

Anonymous
Tue 04 Nov 2003 03:05:25 AM UTC, original submission:  

I have version 1.6 of sleep.h, and on the ATmega161, ATmega162, and ATmega8515 the sleep mode bits reside in three different registers:

SM0 : EMCUCR
SM1 : MCUCR
SM2 : MCUCSR (SM2 not present in ATmega161)

The EMCUCR is not even referenced in sleep.h. I have attached my own personal edit of sleep.h as a possible substitute. I have checked the following register header files for possible conflicts with my code (checking for the presence of EMCUCR to determine whether to enter _SLEEP_TYPE=4): m128, m16, m169, m32, m323, m64, m8, m8535.

Invalid User ID <#25013>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Follow 8 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-12-30 arcanum StatusNone Fixed
    Percent Complete80% 100%
    Open/ClosedOpen Closed
2004-12-28 arcanum Percent Complete50% 80%
2004-12-22 arcanum Priority5 - Normal 9 - Immediate
    Percent Complete0% 50%
2004-12-21 arcanum Severity3 - Normal 6 - Security
2004-11-22 arcanum Assigned toNone arcanum

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code