patchAVR C Runtime Library - Patches: patch #8810, Fix LFUSE_DEFAULT for tiny24a/44a

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #8810: Fix LFUSE_DEFAULT for tiny24a/44a

Submitter:  Pitchumani <pitchumani>
Submitted:  Thu 26 Nov 2015 08:00:52 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  pitchumani Open/Closed:  Closed

Thu 26 Nov 2015 08:11:12 AM UTC, comment #1: 
Pitchumani <pitchumani>
Group Member
Thu 26 Nov 2015 08:00:52 AM UTC, original submission:  

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 */

Pitchumani <pitchumani>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pitchumani
  • -email is unavailable- added by pitchumani (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-26 pitchumani StatusNone Done
        Open/ClosedOpen Closed
    2015-11-26 pitchumani Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code