pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

avr-libc: Fix header files avr/power.h and avr/wdt.h



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <micha%NetBSD.org@localhost>
Pushed By:	micha
Date:		Mon Aug 30 19:03:21 2021 +0200
Changeset:	b641f94c61484dbed222cbf5e1b065fba6ee042d

Modified Files:
	avr-libc/distinfo
Added Files:
	avr-libc/patches/patch-include_avr_power.h
	avr-libc/patches/patch-include_avr_wdt.h

Log Message:
avr-libc: Fix header files avr/power.h and avr/wdt.h

Support for ATmega324PA is missing or not documented respectively.
ATmega324PA is a functionally identical drop-in replacement for ATmega324P
with lower current consumption (see application note AVR527 for details).

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b641f94c61484dbed222cbf5e1b065fba6ee042d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 avr-libc/distinfo                          |  2 ++
 avr-libc/patches/patch-include_avr_power.h | 14 ++++++++++++++
 avr-libc/patches/patch-include_avr_wdt.h   | 24 ++++++++++++++++++++++++
 3 files changed, 40 insertions(+)

diffs:
diff --git a/avr-libc/distinfo b/avr-libc/distinfo
index 6d4fb1b71e..4703bb5c65 100644
--- a/avr-libc/distinfo
+++ b/avr-libc/distinfo
@@ -6,3 +6,5 @@ SHA512 (avr-libc-2.0.0.tar.bz2) = fc8d062043d633350dbe05978935dcb8028257a4f1013f
 Size (avr-libc-2.0.0.tar.bz2) = 3590893 bytes
 SHA1 (patch-doc_Makefile.in) = 948571851d14a15dd6aea71fa94fab86349d0988
 SHA1 (patch-doc_api_Makefile.in) = f40ae53e9ebfdeec562746586e2145570fb2429d
+SHA1 (patch-include_avr_power.h) = f5231cf26999eed5fd356afc7a44d954e30b75a3
+SHA1 (patch-include_avr_wdt.h) = 4e0882cc6e795870e58182ebe7820f9bc98bf2ce
diff --git a/avr-libc/patches/patch-include_avr_power.h b/avr-libc/patches/patch-include_avr_power.h
new file mode 100644
index 0000000000..6d0708cd99
--- /dev/null
+++ b/avr-libc/patches/patch-include_avr_power.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Fix support for ATmega324PA.
+
+--- include/avr/power.h.orig	2016-02-07 22:59:49.000000000 +0000
++++ include/avr/power.h
+@@ -1303,6 +1303,7 @@ __power_all_disable()
+ || defined(__AVR_ATmega256RFR2__) \
+ || defined(__AVR_ATmega324A__) \
+ || defined(__AVR_ATmega324P__) \
++|| defined(__AVR_ATmega324PA__) \
+ || defined(__AVR_ATmega325__) \
+ || defined(__AVR_ATmega325A__) \
+ || defined(__AVR_ATmega325PA__) \
diff --git a/avr-libc/patches/patch-include_avr_wdt.h b/avr-libc/patches/patch-include_avr_wdt.h
new file mode 100644
index 0000000000..6ddb4ab661
--- /dev/null
+++ b/avr-libc/patches/patch-include_avr_wdt.h
@@ -0,0 +1,24 @@
+$NetBSD$
+
+Fix comments for ATmega324PA.
+
+--- include/avr/wdt.h.orig	2016-02-07 22:59:49.000000000 +0000
++++ include/avr/wdt.h
+@@ -549,7 +549,7 @@ void wdt_disable (void)
+     ATtiny261, ATtiny461, ATtiny861, 
+     ATmega48, ATmega88, ATmega168,
+     ATmega48P, ATmega88P, ATmega168P, ATmega328P,
+-    ATmega164P, ATmega324P, ATmega644P, ATmega644,
++    ATmega164P, ATmega324P, ATmega324PA, ATmega644P, ATmega644,
+     ATmega640, ATmega1280, ATmega1281, ATmega2560, ATmega2561,
+     ATmega8HVA, ATmega16HVA, ATmega32HVB,
+     ATmega406, ATmega1284P,
+@@ -570,7 +570,7 @@ void wdt_disable (void)
+     ATtiny261, ATtiny461, ATtiny861, 
+     ATmega48, ATmega48A, ATmega48PA, ATmega88, ATmega168,
+     ATmega48P, ATmega88P, ATmega168P, ATmega328P,
+-    ATmega164P, ATmega324P, ATmega644P, ATmega644,
++    ATmega164P, ATmega324P, ATmega324PA, ATmega644P, ATmega644,
+     ATmega640, ATmega1280, ATmega1281, ATmega2560, ATmega2561,
+     ATmega8HVA, ATmega16HVA, ATmega32HVB,
+     ATmega406, ATmega1284P,


Home | Main Index | Thread Index | Old Index