avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bugs #6352] <avr/sleep.h> does not set sleep mode proper


From: Eric Weddington
Subject: [avr-libc-dev] [bugs #6352] <avr/sleep.h> does not set sleep mode properly for ATmega162, ATmega161, and ATmega8515
Date: Tue, 28 Dec 2004 18:19:36 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1

This mail is an automated notification from the bugs tracker
 of the project: AVR C Runtime Library.

/**************************************************************************/
[bugs #6352] Latest Modifications:

Changes by: 
                Eric Weddington <address@hidden>
'Date: 
                Tue 12/28/2004 at 22:57 (America/Denver)

            What     | Removed                   | Added
---------------------------------------------------------------------------
    Percent Complete | 50%                       | 80%







/**************************************************************************/
[bugs #6352] Full Item Snapshot:

URL: <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=6352>
Project: AVR C Runtime Library
Submitted by: Jared Grubb
On: Tue 11/04/2003 at 03:05

Category:  Header
Severity:  9 - Blocker
Priority:  9 - Immediate
Item Group:  None
Resolution:  None
Privacy:  Public
Percent Complete:  80%
Assigned to:  arcanum
Originator Email:  address@hidden
Status:  Open


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

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.


Follow-up Comments
------------------


-------------------------------------------------------
Date: Tue 12/21/2004 at 18:46       By: Eric Weddington <arcanum>
The solution for the mega169 (in comments) is the same to handle bug #10489.

-------------------------------------------------------
Date: Mon 12/29/2003 at 16:35       By: 0 <None>
sorry, not EMCUCR but SMCR on ATmega169

-------------------------------------------------------
Date: Mon 12/29/2003 at 16:25       By: 0 <None>
for ATmega169 SM* are all in EMCUCR.






File Attachments
-------------------

-------------------------------------------------------
Date: Tue 11/04/2003 at 03:05  Name: sleep.h  Size: 6.2KB   By: yttrbium
Suggested replacement for &lt;avr/sleep.h&gt;
http://savannah.nongnu.org/bugs/download.php?item_id=6352&amp;item_file_id=790






For detailed info, follow this link:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=6352>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]