AVR C Runtime Library - Bugs: bug #21521, incorrect bit definitions in...
You are not allowed to post comments on this tracker with your current authentication level.
bug #21521: incorrect bit definitions in iotnx61.h
Submitter: | Yury Shevchuk <sizif> | ||
Submitted: | Tue 06 Nov 2007 08:46:41 AM UTC | ||
Category: | Header | Severity: | 3 - Normal |
Priority: | 5 - Normal | Item Group: | Header files |
Status: | Fixed | Assigned to: | arcanum |
Percent Complete: | 100% | Open/Closed: | Closed |
Release: | None | Fixed Release: | None |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
Follow 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2007-12-12 | arcanum | Status | None | Fixed | |
Percent Complete | 90% | 100% | |||
Open/Closed | Open | Closed | |||
2007-12-12 | arcanum | Percent Complete | 0% | 90% | |
Assigned to | None | arcanum |
Powered by Savane 3.13-caa5.
Corresponding source code
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