Discussion:
[avr-libc-dev] [patch #8810] Fix LFUSE_DEFAULT for tiny24a/44a
Pitchumani
2015-11-26 08:00:54 UTC
Permalink
URL:
<http://savannah.nongnu.org/patch/?8810>

Summary: Fix LFUSE_DEFAULT for tiny24a/44a
Project: AVR C Runtime Library
Submitted by: pitchumani
Submitted on: Thu 26 Nov 2015 08:00:52 AM GMT
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: pitchumani
Originator Email:
Open/Closed: Open
Discussion Lock: Any

_______________________________________________________

Details:

LFUSE_DEFAULT is missing the FUSE_CKSEL3 on ATtiny24a
Sent by Olsen, Morten Engelhardt
Ref:
http://www.avrfreaks.net/forum/avr-gcc-attiny24a-lfusedefault-not-correct

diff --git a/avr/iotn24a.h b/avr/iotn24a.h
index ed22f0e..b60f9f6 100644
--- a/avr/iotn24a.h
+++ b/avr/iotn24a.h
@@ -613,7 +613,7 @@
#define FUSE_SUT1 (unsigned char)~_BV(5) /* Select start-up time */
#define FUSE_CKOUT (unsigned char)~_BV(6) /* Clock Output Enable */
#define FUSE_CKDIV8 (unsigned char)~_BV(7) /* Divide clock by 8 */
-#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_SUT0 & FUSE_CKDIV8)
+#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 */
diff --git a/avr/iotn44a.h b/avr/iotn44a.h
index 547eac3..32bed7f 100644
--- a/avr/iotn44a.h
+++ b/avr/iotn44a.h
@@ -611,7 +611,7 @@
#define FUSE_SUT1 (unsigned char)~_BV(5) /* Select start-up time */
#define FUSE_CKOUT (unsigned char)~_BV(6) /* Clock Output Enable */
#define FUSE_CKDIV8 (unsigned char)~_BV(7) /* Divide clock by 8 */
-#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_SUT0 & FUSE_CKDIV8)
+#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 */




_______________________________________________________

Reply to this item at:

<http://savannah.nongnu.org/patch/?8810>

_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
Pitchumani
2015-11-26 08:11:13 UTC
Permalink
Update of patch #8810 (project avr-libc):

Status: None => Done
Open/Closed: Open => Closed

_______________________________________________________

Follow-up Comment #1:

comitted as revision 2494.

http://svn.savannah.nongnu.org/viewvc?view=rev&root=avr-libc&revision=2494

_______________________________________________________

Reply to this item at:

<http://savannah.nongnu.org/patch/?8810>

_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/

Loading...