bugAVR C Runtime Library - Bugs: bug #22245, avr/iom8.h defines fuse and lock...

 
 

bug #22245: avr/iom8.h defines fuse and lock bits twice

Submitted by:  Carl Lang <charlybravo>
Submitted on:  Thu 07 Feb 2008 12:02:00 AM UTC  
 
Category: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Header files
Status: FixedPercent Complete: 100%
Assigned to: Eric Weddington <arcanum>Open/Closed: Closed
Release: NoneFixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 11 Feb 2008 09:51:43 PM UTC, comment #1:

Already fixed in CVS. Will be available in next avr-libc release.

Eric Weddington <arcanum>
Project AdministratorIn charge of this item.
Thu 07 Feb 2008 12:02:00 AM UTC, original submission:

First definition

572 /* Fuses */
573 #define FUSE_MEMORY_SIZE 2
574
575 /* Low Fuse Byte */
576 #define CKSEL0 ~_BV(0)
577 #define CKSEL1 ~_BV(1)
578 #define CKSEL2 ~_BV(2)
579 #define CKSEL3 ~_BV(3)
580 #define SUT0 ~_BV(4)
581 #define SUT1 ~_BV(5)
582 #define BODEN ~_BV(6)
583 #define BODLEVEL ~_BV(7)
584 #define LFUSE_DEFAULT (SUT0 & CKSEL3 & CKSEL2 & CKSEL1)
585
586
587 /* High Fuse Byte */
588 #define BOOTRST ~_BV(0)
589 #define BOOTSZ0 ~_BV(1)
590 #define BOOTSZ1 ~_BV(2)
591 #define EESAVE ~_BV(3)
592 #define CKOPT ~_BV(4)
593 #define SPIEN ~_BV(5)
594 #define WDTON ~_BV(6)
595 #define RSTDISBL ~_BV(7)
596 #define HFUSE_DEFAULT (SPIEN & BOOTSZ1 & BOOTSZ0)
597
598
599 /* Lock Bits */
600 #define __LOCK_BITS_EXIST
601 #define __BOOT_LOCK_BITS_0_EXIST
602 #define __BOOT_LOCK_BITS_1_EXIST

Immediately followed by second identical definition:

607 /* Fuses */
608
609 #define FUSE_MEMORY_SIZE 2
610
611 /* Low Fuse Byte */
612 #define CKSEL0 ~_BV(0)
613 #define CKSEL1 ~_BV(1)
614 #define CKSEL2 ~_BV(2)
615 #define CKSEL3 ~_BV(3)
616 #define SUT0 ~_BV(4)
617 #define SUT1 ~_BV(5)
618 #define BODEN ~_BV(6)
619 #define BODLEVEL ~_BV(7)
620 #define LFUSE_DEFAULT (SUT0 & CKSEL3 & CKSEL2 & CKSEL1)
621
622 /* High Fuse Byte */
623 #define BOOTRST ~_BV(0)
624 #define BOOTSZ0 ~_BV(1)
625 #define BOOTSZ1 ~_BV(2)
626 #define EESAVE ~_BV(3)
627 #define CKOPT ~_BV(4)
628 #define SPIEN ~_BV(5)
629 #define WDTON ~_BV(6)
630 #define RSTDISBL ~_BV(7)
631 #define HFUSE_DEFAULT (SPIEN & BOOTSZ1 & BOOTSZ0)
632
633
634 /* Lock Bits */
635 #define __LOCK_BITS_EXIST
636 #define __BOOT_LOCK_BITS_0_EXIST
637 #define __BOOT_LOCK_BITS_1_EXIST
638
639

Carl Lang <charlybravo>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by arcanum (Posted a comment)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 11 Feb 2008 09:51:43 PM UTCarcanumStatusNone=>Fixed
      Percent Complete0%=>100%
      Assigned toNone=>arcanum
      Open/ClosedOpen=>Closed
    Thu 07 Feb 2008 12:04:03 AM UTCcharlybravoCarbon-CopyRemoved 65388=>-

    Back to the top


    Powered by Savane 3.1-cleanup1