[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-commit] [2414] Update register and bit definitions for tiny 13
From: |
Pitchumani |
Subject: |
[avr-libc-commit] [2414] Update register and bit definitions for tiny 13a/24a/44a/84a, tiny167 and mega328p |
Date: |
Fri, 21 Mar 2014 16:04:17 +0000 |
Revision: 2414
http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2414
Author: pitchumani
Date: 2014-03-21 16:04:00 +0000 (Fri, 21 Mar 2014)
Log Message:
-----------
Update register and bit definitions for tiny 13a/24a/44a/84a, tiny167 and
mega328p
Modified Paths:
--------------
trunk/avr-libc/ChangeLog
trunk/avr-libc/NEWS
trunk/avr-libc/include/avr/iom328p.h
trunk/avr-libc/include/avr/iotn13a.h
trunk/avr-libc/include/avr/iotn167.h
trunk/avr-libc/include/avr/iotn24a.h
trunk/avr-libc/include/avr/iotn44a.h
trunk/avr-libc/include/avr/iotn84a.h
Modified: trunk/avr-libc/ChangeLog
===================================================================
--- trunk/avr-libc/ChangeLog 2014-03-20 14:58:23 UTC (rev 2413)
+++ trunk/avr-libc/ChangeLog 2014-03-21 16:04:00 UTC (rev 2414)
@@ -1,3 +1,13 @@
+2014-03-21 Morten Engelhardt Olsen <address@hidden>
+
+ * include/avr/iotn13a.h: Rename BODCR register's bit definitions.
+ * include/avr/iotn24a.h: Add BODSE and BODS bits to MCUCR register.
+ Add WDT_vect interrupt vector.
+ * include/avr/iotn44a.h: Add BODSE and BODS bits to MCUCR register.
+ * include/avr/iotn84a.h: Same.
+ * include/avr/iotn167.h: Update PUDB bit definition.
+ * include/avr/iom328p.h: Update High and extended fuse byte definitions.
+
2014-03-20 Pitchumani Sivanupandi <address@hidden>
Submitted by Morten Engelhardt Olsen <address@hidden>
Modified: trunk/avr-libc/NEWS
===================================================================
--- trunk/avr-libc/NEWS 2014-03-20 14:58:23 UTC (rev 2413)
+++ trunk/avr-libc/NEWS 2014-03-21 16:04:00 UTC (rev 2414)
@@ -21,6 +21,8 @@
[#41519] wrong SPM_PAGESIZE definition in iotn[48]8.h
[no-id] XXX_vect_num not consistent io90pwmx.h, iousbxx6_7.h
[no-id] Specialize clock_prescale_set/get for mega hvb devices
+ [no-id] Update register and bit definitions for tiny 13a/24a/44a/84a,
+ tiny167 and mega328p
* New devices supported:
Modified: trunk/avr-libc/include/avr/iom328p.h
===================================================================
--- trunk/avr-libc/include/avr/iom328p.h 2014-03-20 14:58:23 UTC (rev
2413)
+++ trunk/avr-libc/include/avr/iom328p.h 2014-03-21 16:04:00 UTC (rev
2414)
@@ -893,24 +893,25 @@
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 &
FUSE_CKDIV8)
/* High Fuse Byte */
-#define FUSE_BODLEVEL0 (unsigned char)~_BV(0) /* Brown-out Detector trigger
level */
-#define FUSE_BODLEVEL1 (unsigned char)~_BV(1) /* Brown-out Detector trigger
level */
-#define FUSE_BODLEVEL2 (unsigned char)~_BV(2) /* Brown-out Detector trigger
level */
+#define FUSE_BOOTRST (unsigned char)~_BV(0)
+#define FUSE_BOOTSZ0 (unsigned char)~_BV(1)
+#define FUSE_BOOTSZ1 (unsigned char)~_BV(2)
#define FUSE_EESAVE (unsigned char)~_BV(3) /* EEPROM memory is preserved
through chip erase */
#define FUSE_WDTON (unsigned char)~_BV(4) /* Watchdog Timer Always On */
#define FUSE_SPIEN (unsigned char)~_BV(5) /* Enable Serial programming
and Data Downloading */
#define FUSE_DWEN (unsigned char)~_BV(6) /* debugWIRE Enable */
#define FUSE_RSTDISBL (unsigned char)~_BV(7) /* External reset disable */
-#define HFUSE_DEFAULT (FUSE_SPIEN)
+#define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_SPIEN)
/* Extended Fuse Byte */
-#define FUSE_BOOTRST (unsigned char)~_BV(0)
-#define FUSE_BOOTSZ0 (unsigned char)~_BV(1)
-#define FUSE_BOOTSZ1 (unsigned char)~_BV(2)
-#define EFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1)
+#define FUSE_BODLEVEL0 (unsigned char)~_BV(0) /* Brown-out Detector trigger
level */
+#define FUSE_BODLEVEL1 (unsigned char)~_BV(1) /* Brown-out Detector trigger
level */
+#define FUSE_BODLEVEL2 (unsigned char)~_BV(2) /* Brown-out Detector trigger
level */
+#define EFUSE_DEFAULT ()
+
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
Modified: trunk/avr-libc/include/avr/iotn13a.h
===================================================================
--- trunk/avr-libc/include/avr/iotn13a.h 2014-03-20 14:58:23 UTC (rev
2413)
+++ trunk/avr-libc/include/avr/iotn13a.h 2014-03-21 16:04:00 UTC (rev
2414)
@@ -229,8 +229,8 @@
#define COM0A1 7
#define BODCR _SFR_IO8(0x30)
-#define BPDSE 0
-#define BPDS 1
+#define BODSE 0
+#define BODS 1
#define OSCCAL _SFR_IO8(0x31)
#define CAL0 0
Modified: trunk/avr-libc/include/avr/iotn167.h
===================================================================
--- trunk/avr-libc/include/avr/iotn167.h 2014-03-20 14:58:23 UTC (rev
2413)
+++ trunk/avr-libc/include/avr/iotn167.h 2014-03-21 16:04:00 UTC (rev
2414)
@@ -114,7 +114,7 @@
#define PORTCR _SFR_IO8(0x12)
#define PUDA 0
-#define PUDB 2
+#define PUDB 1
#define BBMA 4
#define BBMB 5
Modified: trunk/avr-libc/include/avr/iotn24a.h
===================================================================
--- trunk/avr-libc/include/avr/iotn24a.h 2014-03-20 14:58:23 UTC (rev
2413)
+++ trunk/avr-libc/include/avr/iotn24a.h 2014-03-21 16:04:00 UTC (rev
2414)
@@ -486,10 +486,12 @@
#define MCUCR _SFR_IO8(0x35)
#define ISC00 0
#define ISC01 1
+#define BODSE 2
#define SM0 3
#define SM1 4
#define SE 5
#define PUD 6
+#define BODS 7
#define OCR0A _SFR_IO8(0x36)
#define OCR0A_0 0
@@ -547,8 +549,10 @@
#define PCINT0_vect _VECTOR(2) /* Pin Change Interrupt Request 0 */
#define PCINT1_vect_num 3
#define PCINT1_vect _VECTOR(3) /* Pin Change Interrupt Request 1 */
+#define WDT_vect_num 4
+#define WDT_vect _VECTOR(4) /* Watchdog Time-out */
#define WATCHDOG_vect_num 4
-#define WATCHDOG_vect _VECTOR(4) /* Watchdog Time-out */
+#define WATCHDOG_vect _VECTOR(4) /* alias */
#define TIM1_CAPT_vect_num 5
#define TIM1_CAPT_vect _VECTOR(5) /* Timer/Counter1 Capture Event */
#define TIM1_COMPA_vect_num 6
Modified: trunk/avr-libc/include/avr/iotn44a.h
===================================================================
--- trunk/avr-libc/include/avr/iotn44a.h 2014-03-20 14:58:23 UTC (rev
2413)
+++ trunk/avr-libc/include/avr/iotn44a.h 2014-03-21 16:04:00 UTC (rev
2414)
@@ -486,10 +486,12 @@
#define MCUCR _SFR_IO8(0x35)
#define ISC00 0
#define ISC01 1
+#define BODSE 2
#define SM0 3
#define SM1 4
#define SE 5
#define PUD 6
+#define BODS 7
#define OCR0A _SFR_IO8(0x36)
#define OCR0A_0 0
Modified: trunk/avr-libc/include/avr/iotn84a.h
===================================================================
--- trunk/avr-libc/include/avr/iotn84a.h 2014-03-20 14:58:23 UTC (rev
2413)
+++ trunk/avr-libc/include/avr/iotn84a.h 2014-03-21 16:04:00 UTC (rev
2414)
@@ -486,10 +486,12 @@
#define MCUCR _SFR_IO8(0x35)
#define ISC00 0
#define ISC01 1
+#define BODSE 2
#define SM0 3
#define SM1 4
#define SE 5
#define PUD 6
+#define BODS 7
#define OCR0A _SFR_IO8(0x36)
#define OCR0A_0 0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-commit] [2414] Update register and bit definitions for tiny 13a/24a/44a/84a, tiny167 and mega328p,
Pitchumani <=