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

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

[avr-libc-dev] [bugs #11510] WDCE used in wdt.h for device which doesn't


From: Eric Weddington
Subject: [avr-libc-dev] [bugs #11510] WDCE used in wdt.h for device which doesn't have the bit in WDTCR
Date: Thu, 06 Jan 2005 17:29:10 -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 #11510] Latest Modifications:

Changes by: 
                Eric Weddington <address@hidden>
'Date: 
                Thu 01/06/2005 at 22:17 (America/Denver)

            What     | Removed                   | Added
---------------------------------------------------------------------------
    Percent Complete | 0%                        | 50%
         Assigned to | None                      | arcanum


------------------ Additional Follow-up Comments ----------------------------
Fixed on HEAD. Will fix on 1.2 branch ....






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

URL: <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=11510>
Project: AVR C Runtime Library
Submitted by: 0
On: Thu 01/06/2005 at 21:34

Category:  Library
Severity:  5 - Average
Priority:  7 - High
Item Group:  None
Resolution:  None
Privacy:  Public
Percent Complete:  50%
Assigned to:  arcanum
Originator Email:  address@hidden
Status:  Open


Summary:  WDCE used in wdt.h for device which doesn't have the bit in WDTCR

Original Submission:  Found the following bug during compile of watchdog 
related code on ATmega32 using wdt.h version:
/* $Id: wdt.h,v 1.9 2004/11/08 23:52:28 arcanum Exp $ */
from avr-libc v1.2.0

Both macros _wdt_write(value) using the WDCE bit:

: /* no outputs */  
: "I" (_SFR_IO_ADDR(_WD_CONTROL_REG)), 
"r" (_BV(WDCE) | _BV(WDE)), 

it's OK for device which WDCE bit, but not for example the ATmega32.
The code will compile with error: `WDCE' undeclared... 

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


-------------------------------------------------------
Date: Thu 01/06/2005 at 22:17       By: Eric Weddington <arcanum>
Fixed on HEAD. Will fix on 1.2 branch ....

-------------------------------------------------------
Date: Thu 01/06/2005 at 22:06       By: Eric Weddington <arcanum>
The mega32 has the WDTOE bit in place of the WDCE bit. This bit name needs to 
be abstracted in wdt.h.












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

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







reply via email to

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