948
949
#define FUSE_MEMORY_SIZE 3
950
951
/* Low Fuse Byte */
951
#define FUSE_CKSEL0 ~_BV(0)
952
#define FUSE_CKSEL1 ~_BV(1)
953
#define FUSE_CKSEL2 ~_BV(2)
954
#define FUSE_CKSEL3 ~_BV(3)
955
#define FUSE_SUT0 ~_BV(4)
956
#define FUSE_SUT1 ~_BV(5)
957
#define FUSE_CKOUT ~_BV(6)
958
#define FUSE_CKDIV8 ~_BV(7)
952
#define FUSE_CKSEL0 (unsigned char)~_BV(0)
953
#define FUSE_CKSEL1 (unsigned char)~_BV(1)
954
#define FUSE_CKSEL2 (unsigned char)~_BV(2)
955
#define FUSE_CKSEL3 (unsigned char)~_BV(3)
956
#define FUSE_SUT0 (unsigned char)~_BV(4)
957
#define FUSE_SUT1 (unsigned char)~_BV(5)
958
#define FUSE_CKOUT (unsigned char)~_BV(6)
959
#define FUSE_CKDIV8 (unsigned char)~_BV(7)
959
960
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
961
962
/* High Fuse Byte */
962
#define FUSE_BOOTRST ~_BV(0)
963
#define FUSE_BOOTSZ0 ~_BV(1)
964
#define FUSE_BOOTSZ1 ~_BV(2)
965
#define FUSE_EESAVE ~_BV(3)
966
#define FUSE_WDTON ~_BV(4)
967
#define FUSE_SPIEN ~_BV(5)
968
#define FUSE_JTAGEN ~_BV(6)
969
#define FUSE_OCDEN ~_BV(7)
963
#define FUSE_BOOTRST (unsigned char)~_BV(0)
964
#define FUSE_BOOTSZ0 (unsigned char)~_BV(1)
965
#define FUSE_BOOTSZ1 (unsigned char)~_BV(2)
966
#define FUSE_EESAVE (unsigned char)~_BV(3)
967
#define FUSE_WDTON (unsigned char)~_BV(4)
968
#define FUSE_SPIEN (unsigned char)~_BV(5)
969
#define FUSE_JTAGEN (unsigned char)~_BV(6)
970
#define FUSE_OCDEN (unsigned char)~_BV(7)
970
971
#define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_SPIEN & FUSE_JTAGEN)
972
973
/* Extended Fuse Byte */
973
#define FUSE_RSTDISBL ~_BV(0)
974
#define FUSE_BODLEVEL0 ~_BV(1)
975
#define FUSE_BODLEVEL1 ~_BV(2)
974
#define FUSE_RSTDISBL (unsigned char)~_BV(0)
975
#define FUSE_BODLEVEL0 (unsigned char)~_BV(1)
976
#define FUSE_BODLEVEL1 (unsigned char)~_BV(2)
976
977
#define EFUSE_DEFAULT (0xFF)