[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-commit] [2483] Fix typos and incorrect definitions in device h
From: |
Pitchumani |
Subject: |
[avr-libc-commit] [2483] Fix typos and incorrect definitions in device header files |
Date: |
Thu, 06 Aug 2015 09:16:31 +0000 |
Revision: 2483
http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2483
Author: pitchumani
Date: 2015-08-06 09:16:30 +0000 (Thu, 06 Aug 2015)
Log Message:
-----------
Fix typos and incorrect definitions in device header files
Modified Paths:
--------------
trunk/avr-libc/ChangeLog
trunk/avr-libc/NEWS
trunk/avr-libc/include/avr/io2323.h
trunk/avr-libc/include/avr/io90pwm216.h
trunk/avr-libc/include/avr/io90pwm316.h
trunk/avr-libc/include/avr/iom165a.h
trunk/avr-libc/include/avr/iom16a.h
trunk/avr-libc/include/avr/iom324.h
trunk/avr-libc/include/avr/iotn861a.h
trunk/avr-libc/include/avr/iousbxx6_7.h
Modified: trunk/avr-libc/ChangeLog
===================================================================
--- trunk/avr-libc/ChangeLog 2015-08-06 08:54:17 UTC (rev 2482)
+++ trunk/avr-libc/ChangeLog 2015-08-06 09:16:30 UTC (rev 2483)
@@ -1,5 +1,19 @@
2015-08-06 Morten Engelhardt Olsen <address@hidden>
+ Fix typos and incorrect defines in header files.
+ * include/avr/io90pwm216.h: corrted typo in comment.
+ * include/avr/iousbxx6_7.h: Add ADHSM bit definition to ADCSRB.
+ * include/avr/iom165a.h: Remove BODSE and BODS.
+ * include/avr/io2323.h: Move sleep mode definitions to correct place.
+ * include/avr/io90pwm316.h: corrected typo in comment.
+ (PIM1): Add pin definitions.
+ * include/avr/iom16a.h: Add SPI_STC_vect. Keep old name for backward
+ compatibility.
+ * include/avr/iom324.h: Remove duplicate sleep mode definitions.
+ * include/avr/iotn861a.h (PWM1X): Define.
+
+2015-08-06 Morten Engelhardt Olsen <address@hidden>
+
* include/avr/iox32a4.h: Renamed member LOCKBITS to LOCK_BITS.
(ADC_CH_MUXPOS_enum): Add missed pinmux positions.
* include/avr/iox32d4.h: Likewise.
Modified: trunk/avr-libc/NEWS
===================================================================
--- trunk/avr-libc/NEWS 2015-08-06 08:54:17 UTC (rev 2482)
+++ trunk/avr-libc/NEWS 2015-08-06 09:16:30 UTC (rev 2483)
@@ -20,7 +20,8 @@
header files
[no-id] LOCKBITS renamed to LOCK_BITS in Xmega header files as LOCKBITS
clashes with definition in lock.h. Added missed defines to
ADC_CH_MUXPOS_enum.
- Corrected pinmux values in ADC_CH_MUXNEG_enum.
+ Corrected pinmux values in ADC_CH_MUXNEG_enum.
+ [no-id] Fix typos and incorrect definitions in header files.
* New devices supported:
Modified: trunk/avr-libc/include/avr/io2323.h
===================================================================
--- trunk/avr-libc/include/avr/io2323.h 2015-08-06 08:54:17 UTC (rev 2482)
+++ trunk/avr-libc/include/avr/io2323.h 2015-08-06 09:16:30 UTC (rev 2483)
@@ -197,15 +197,14 @@
#define SIGNATURE_1 0x91
#define SIGNATURE_2 0x02
+#define SLEEP_MODE_IDLE 0
+#define SLEEP_MODE_PWR_DOWN _BV(SM)
+
#endif /* _AVR_IO2323_H_ */
/* Signature */
#define SIGNATURE_0 0x1E
#define SIGNATURE_1 0x91
-
-#define SLEEP_MODE_IDLE 0
-#define SLEEP_MODE_PWR_DOWN _BV(SM)
-
#define SIGNATURE_2 0x02
Modified: trunk/avr-libc/include/avr/io90pwm216.h
===================================================================
--- trunk/avr-libc/include/avr/io90pwm216.h 2015-08-06 08:54:17 UTC (rev
2482)
+++ trunk/avr-libc/include/avr/io90pwm216.h 2015-08-06 09:16:30 UTC (rev
2483)
@@ -434,7 +434,7 @@
/* Power Reduction Register */
#define PRR _SFR_MEM8(0x64)
#define PRADC 0 /* Power Reduction ADC */
-#define PRUSART0 1 /* Power Reduction USART */
+#define PRUSART0 1 /* Power Reduction USART0 */
#define PRUSART PRUSART0 /* Define to maintain backward-compatibility */
#define PRSPI 2 /* Power Reduction Serial Peripheral Interface */
#define PRTIM0 3 /* Power Reduction Timer/Counter0 */
Modified: trunk/avr-libc/include/avr/io90pwm316.h
===================================================================
--- trunk/avr-libc/include/avr/io90pwm316.h 2015-08-06 08:54:17 UTC (rev
2482)
+++ trunk/avr-libc/include/avr/io90pwm316.h 2015-08-06 09:16:30 UTC (rev
2483)
@@ -434,7 +434,7 @@
/* Power Reduction Register */
#define PRR _SFR_MEM8(0x64)
#define PRADC 0 /* Power Reduction ADC */
-#define PRUSART0 1 /* Power Reduction USART */
+#define PRUSART0 1 /* Power Reduction USART0 */
#define PRUSART PRUSART0 /* Define to maintain backward-compatibility */
#define PRSPI 2 /* Power Reduction Serial Peripheral Interface */
#define PRTIM0 3 /* Power Reduction Timer/Counter0 */
@@ -701,6 +701,10 @@
/* PSC1 Interrupt Mask Register */
#define PIM1 _SFR_MEM8(0xA3)
+#define PEOPE1 0 /* PSC1 End of Cycle Interrupt Enable */
+#define PEVE1A 3 /* PSC1 External Event A Interrupt Enable */
+#define PEVE1B 4 /* PSC1 External Event B Interrupt Enable */
+#define PSEIE1 5 /* PSC1 Synchro Error Interrupt Enable */
/* PSC2 Interrupt Flag Register */
#define PIFR2 _SFR_MEM8(0xA4)
@@ -1260,11 +1264,9 @@
#define SIGNATURE_1 0x94
#define SIGNATURE_2 0x83
-
#define SLEEP_MODE_IDLE (0x00<<1)
#define SLEEP_MODE_ADC (0x01<<1)
#define SLEEP_MODE_PWR_DOWN (0x02<<1)
#define SLEEP_MODE_STANDBY (0x06<<1)
-
#endif /* _AVR_IO90PWM316_H_ */
Modified: trunk/avr-libc/include/avr/iom165a.h
===================================================================
--- trunk/avr-libc/include/avr/iom165a.h 2015-08-06 08:54:17 UTC (rev
2482)
+++ trunk/avr-libc/include/avr/iom165a.h 2015-08-06 09:16:30 UTC (rev
2483)
@@ -380,8 +380,6 @@
#define IVCE 0
#define IVSEL 1
#define PUD 4
-#define BODSE 5
-#define BODS 6
/* Reserved [0x36] */
Modified: trunk/avr-libc/include/avr/iom16a.h
===================================================================
--- trunk/avr-libc/include/avr/iom16a.h 2015-08-06 08:54:17 UTC (rev 2482)
+++ trunk/avr-libc/include/avr/iom16a.h 2015-08-06 09:16:30 UTC (rev 2483)
@@ -676,8 +676,10 @@
#define TIMER1_OVF_vect _VECTOR(8) /* Timer/Counter1 Overflow */
#define TIMER0_OVF_vect_num 9
#define TIMER0_OVF_vect _VECTOR(9) /* Timer/Counter0 Overflow */
+#define SPI_STC_vect_num 10
+#define SPI_STC_vect _VECTOR(10) /* Serial Transfer Complete */
#define SPISTC_vect_num 10
-#define SPISTC_vect _VECTOR(10) /* Serial Transfer Complete */
+#define SPISTC_vect _VECTOR(10) /* Keep for backward-compatibility */
/* The following vectors use an inconsistent (to the ATmega16 etc.)
naming scheme. The inconsistent names are preserved here for softwares
Modified: trunk/avr-libc/include/avr/iom324.h
===================================================================
--- trunk/avr-libc/include/avr/iom324.h 2015-08-06 08:54:17 UTC (rev 2482)
+++ trunk/avr-libc/include/avr/iom324.h 2015-08-06 09:16:30 UTC (rev 2483)
@@ -98,12 +98,4 @@
#define SLEEP_MODE_STANDBY (0x06<<1)
#define SLEEP_MODE_EXT_STANDBY (0x07<<1)
-#define SLEEP_MODE_IDLE (0x00<<1)
-#define SLEEP_MODE_ADC (0x01<<1)
-#define SLEEP_MODE_PWR_DOWN (0x02<<1)
-#define SLEEP_MODE_PWR_SAVE (0x03<<1)
-#define SLEEP_MODE_STANDBY (0x06<<1)
-#define SLEEP_MODE_EXT_STANDBY (0x07<<1)
-
-
#endif /* _AVR_IOM324_H_ */
Modified: trunk/avr-libc/include/avr/iotn861a.h
===================================================================
--- trunk/avr-libc/include/avr/iotn861a.h 2015-08-06 08:54:17 UTC (rev
2482)
+++ trunk/avr-libc/include/avr/iotn861a.h 2015-08-06 09:16:30 UTC (rev
2483)
@@ -496,6 +496,7 @@
#define DTPS10 4
#define DTPS11 5
#define PSR1 6
+#define PWM1X 7
#define TCCR1A _SFR_IO8(0x30)
#define PWM1B 0
@@ -978,7 +979,6 @@
#define PA0_PIN PINADC
#define PA0_BIT ADC0
-
#define SLEEP_MODE_IDLE (0x00<<3)
#define SLEEP_MODE_ADC (0x01<<3)
#define SLEEP_MODE_PWR_DOWN (0x02<<3)
Modified: trunk/avr-libc/include/avr/iousbxx6_7.h
===================================================================
--- trunk/avr-libc/include/avr/iousbxx6_7.h 2015-08-06 08:54:17 UTC (rev
2482)
+++ trunk/avr-libc/include/avr/iousbxx6_7.h 2015-08-06 09:16:30 UTC (rev
2483)
@@ -581,6 +581,7 @@
#define ADPS0 0
#define ADCSRB _SFR_MEM8(0x7B)
+#define ADHSM 7
#define ACME 6
#define ADTS2 2
#define ADTS1 1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-commit] [2483] Fix typos and incorrect definitions in device header files,
Pitchumani <=