bugAVR C Runtime Library - Bugs: bug #21521, incorrect bit definitions in...

 
 

bug #21521: incorrect bit definitions in iotnx61.h

Submitted by:  Yury Shevchuk <sizif>
Submitted on:  Tue 06 Nov 2007 08:46:41 AM UTC  
 
Category: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Header files
Status: FixedPercent Complete: 100%
Assigned to: Eric Weddington <arcanum>Open/Closed: Closed
Release: NoneFixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 06 Nov 2007 08:46:41 AM UTC, original submission:

Hi!

Some bits in include/avr/iotnx61.h are defined incorrectly WRT
http://www.atmel.com/dyn/resources/prod_documents/doc2588.pdf.
The problem exists up to avr-libc-1.5.1.20071029.

Thank you!

--- iotnx61.h 2007/11/06 08:16:35 1.1
+++ iotnx61.h 2007/11/06 08:30:21
@@ -387,19 +387,19 @@
#define PUD 6

#define PRR _SFR_IO8(0x36)
#define PRADC 0
#define PRUSI 1
-#define PRTIM0 3
-#define PRTIM1 4
+#define PRTIM0 2
+#define PRTIM1 3

#define SPMCSR _SFR_IO8(0x37)
#define SPMEN 0
#define PGERS 1
-#define RGWRT 3
-#define RFLB 4
-#define CTPB 5
+#define PGWRT 2
+#define RFLB 3
+#define CTPB 4

#define TIFR _SFR_IO8(0x38)
#define ICF0 0
#define TOV0 1
#define TOV1 2

Yury Shevchuk <sizif>

 

(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

 

Carbon-Copy List
  • -unavailable- added by arcanum (Updated the item)
  • -unavailable- added by sizif (Submitted the item)
  •  

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

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 12 Dec 2007 02:03:04 PM UTCarcanumStatusNone=>Fixed
      Percent Complete90%=>100%
      Open/ClosedOpen=>Closed
    Wed 12 Dec 2007 01:55:59 PM UTCarcanumPercent Complete0%=>90%
      Assigned toNone=>arcanum

    Back to the top


    Powered by Savane 3.1-cleanup1