[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [patch #8810] Fix LFUSE_DEFAULT for tiny24a/44a
From: |
Pitchumani |
Subject: |
[avr-libc-dev] [patch #8810] Fix LFUSE_DEFAULT for tiny24a/44a |
Date: |
Thu, 26 Nov 2015 08:00:54 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36 |
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/
- [avr-libc-dev] [patch #8810] Fix LFUSE_DEFAULT for tiny24a/44a,
Pitchumani <=