[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-commit] [2536] Fix #50439: Add missing PRTIM4 defines to iom16
From: |
pitchumani . s |
Subject: |
[avr-libc-commit] [2536] Fix #50439: Add missing PRTIM4 defines to iom16u4.h and iom32u4.h |
Date: |
Tue, 7 Mar 2017 02:13:41 -0500 (EST) |
Revision: 2536
http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2536
Author: pitchumani
Date: 2017-03-07 02:13:41 -0500 (Tue, 07 Mar 2017)
Log Message:
-----------
Fix #50439: Add missing PRTIM4 defines to iom16u4.h and iom32u4.h
Modified Paths:
--------------
trunk/avr-libc/NEWS
trunk/avr-libc/include/avr/iom16u4.h
trunk/avr-libc/include/avr/iom32u4.h
Added Paths:
-----------
trunk/avr-libc/ChangeLog
Added: trunk/avr-libc/ChangeLog
===================================================================
--- trunk/avr-libc/ChangeLog (rev 0)
+++ trunk/avr-libc/ChangeLog 2017-03-07 07:13:41 UTC (rev 2536)
@@ -0,0 +1,7 @@
+2017-03-07 Pitchumani Sivanupandi <address@hidden>
+
+ Fix for bug #50439: avr/iom32u4.h does not define PRTIM4
+ * include/avr/iom16u4.h (PRTIM4): Define.
+ (__AVR_HAVE_PRR1): Update definition.
+ (__AR_HAVE_PRR1_PRTIM4): Define.
+ * include/avr/iom33u4.h: Likewise.
Modified: trunk/avr-libc/NEWS
===================================================================
--- trunk/avr-libc/NEWS 2017-02-16 06:28:53 UTC (rev 2535)
+++ trunk/avr-libc/NEWS 2017-03-07 07:13:41 UTC (rev 2536)
@@ -8,6 +8,7 @@
[#49020] dtostre() flags documentation error
[#49447] Example code for uart_putchar() has error in recursive call
strings for storage in program memory
+ [#50439] avr/iom32u4.h does not define PRTIM4
* New devices supported:
Modified: trunk/avr-libc/include/avr/iom16u4.h
===================================================================
--- trunk/avr-libc/include/avr/iom16u4.h 2017-02-16 06:28:53 UTC (rev
2535)
+++ trunk/avr-libc/include/avr/iom16u4.h 2017-03-07 07:13:41 UTC (rev
2536)
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iom16u4.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATmega16U4_H_
@@ -458,11 +458,13 @@
#define PRR1 _SFR_MEM8(0x65)
#define PRUSART1 0
#define PRTIM3 3
+#define PRTIM4 4
#define PRUSB 7
-#define __AVR_HAVE_PRR1 ((1<<PRUSART1)|(1<<PRTIM3)|(1<<PRUSB))
+#define __AVR_HAVE_PRR1
((1<<PRUSART1)|(1<<PRTIM4)|(1<<PRTIM3)|(1<<PRUSB))
#define __AVR_HAVE_PRR1_PRUSART1
#define __AVR_HAVE_PRR1_PRTIM3
+#define __AVR_HAVE_PRR1_PRTIM4
#define __AVR_HAVE_PRR1_PRUSB
#define OSCCAL _SFR_MEM8(0x66)
@@ -1412,7 +1414,6 @@
#define SIGNATURE_2 0x88
-
#define SLEEP_MODE_IDLE (0x00<<1)
#define SLEEP_MODE_ADC (0x01<<1)
#define SLEEP_MODE_PWR_DOWN (0x02<<1)
Modified: trunk/avr-libc/include/avr/iom32u4.h
===================================================================
--- trunk/avr-libc/include/avr/iom32u4.h 2017-02-16 06:28:53 UTC (rev
2535)
+++ trunk/avr-libc/include/avr/iom32u4.h 2017-03-07 07:13:41 UTC (rev
2536)
@@ -43,7 +43,7 @@
# define _AVR_IOXXX_H_ "iom32u4.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_IOM32U4_H_
@@ -462,11 +462,13 @@
#define PRR1 _SFR_MEM8(0x65)
#define PRUSART1 0
#define PRTIM3 3
+#define PRTIM4 4
#define PRUSB 7
-#define __AVR_HAVE_PRR1 ((1<<PRUSART1)|(1<<PRTIM3)|(1<<PRUSB))
+#define __AVR_HAVE_PRR1
((1<<PRUSART1)|(1<<PRTIM4)|(1<<PRTIM3)|(1<<PRUSB))
#define __AVR_HAVE_PRR1_PRUSART1
#define __AVR_HAVE_PRR1_PRTIM3
+#define __AVR_HAVE_PRR1_PRTIM4
#define __AVR_HAVE_PRR1_PRUSB
#define OSCCAL _SFR_MEM8(0x66)
@@ -642,9 +644,9 @@
#define ICNC1 7
#define TCCR1C _SFR_MEM8(0x82)
-#define FOC1C 5
-#define FOC1B 6
-#define FOC1A 7
+#define FOC1C 5
+#define FOC1B 6
+#define FOC1A 7
/* Reserved [0x83] */
@@ -1448,7 +1450,7 @@
#define XRAMSIZE (0x10000)
#define XRAMEND (XRAMSIZE - 1)
#define E2END (0x3FF)
-#define E2PAGESIZE (4)
+#define E2PAGESIZE (4)
#define FLASHEND (0x7FFF)
@@ -1490,7 +1492,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-commit] [2536] Fix #50439: Add missing PRTIM4 defines to iom16u4.h and iom32u4.h,
pitchumani . s <=