bugAVR C Runtime Library - Bugs: bug #11510, WDCE used in wdt.h for device...

 
 

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

bug #11510: WDCE used in wdt.h for device which doesn\'t have the bit in WDTCR

Submitter:  None
Submitted:  Thu 06 Jan 2005 09:34:48 PM UTC
   
 
Category:  Library Severity:  3 - Normal
Priority:  7 - High Item Group:  None
Status:  None Assigned to:  arcanum
Percent Complete:  100% Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  None
Fixed Release:  None

Thu 06 Jan 2005 10:35:45 PM UTC, comment #3: 

Fixed on 1.2 branch now. Bug closed.

Eric Weddington <arcanum>
Group administrator
Thu 06 Jan 2005 10:17:06 PM UTC, comment #2: 

Fixed on HEAD. Will fix on 1.2 branch ....

Eric Weddington <arcanum>
Group administrator
Thu 06 Jan 2005 10:06:05 PM UTC, comment #1: 

The mega32 has the WDTOE bit in place of the WDCE bit. This bit name needs to be abstracted in wdt.h.

Eric Weddington <arcanum>
Group administrator
Thu 06 Jan 2005 09:34:48 PM UTC, 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...

Anonymous

 

(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 6 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-01-06 arcanum Percent Complete50% 100%
    Open/ClosedOpen Closed
    SummaryWDCE used in wdt.h for device which doesn't have the bit in WDTCR WDCE used in wdt.h for device which doesn\'t have the bit in WDTCR
2005-01-06 arcanum Percent Complete0% 50%
    Assigned toNone arcanum
2005-01-06 arcanum Priority5 - Normal 7 - High

Back to the top

Powered by Savane 3.13-d3ae.
Corresponding source code