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

 
 

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

Submitted by:  None
Submitted on:  Thu 06 Jan 2005 09:34:48 PM UTC  
 
Category: LibrarySeverity: 3 - Normal
Priority: 7 - HighItem Group: None
Status: NonePercent Complete: 100%
Assigned to: Eric Weddington <arcanum>Originator Email: -unavailable-
Open/Closed: ClosedRelease: None
Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Fixed on 1.2 branch now. Bug closed.

Eric Weddington <arcanum>
Project AdministratorIn charge of this item.
Thu 06 Jan 2005 10:17:06 PM UTC, comment #2:

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

Eric Weddington <arcanum>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 6 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 06 Jan 2005 10:35:45 PM UTCarcanumPercent 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
Thu 06 Jan 2005 10:17:06 PM UTCarcanumPercent Complete0%=>50%
  Assigned toNone=>arcanum
Thu 06 Jan 2005 10:06:05 PM UTCarcanumPriority5 - Normal=>7 - High

Back to the top


Powered by Savane 3.1-cleanup1