1176
1177
#define FUSE_MEMORY_SIZE 3
1178
1179
/* Low Fuse Byte */
1179
#define FUSE_CKSEL0 ~_BV(0) /* Select Clock Source */
1180
#define FUSE_CKSEL1 ~_BV(1) /* Select Clock Source */
1181
#define FUSE_CKSEL2 ~_BV(2) /* Select Clock Source */
1182
#define FUSE_CKSEL3 ~_BV(3) /* Select Clock Source */
1183
#define FUSE_SUT0 ~_BV(4) /* Select start-up time */
1184
#define FUSE_SUT1 ~_BV(5) /* Select start-up time */
1185
#define FUSE_CKOUT ~_BV(6) /* Oscillator output option */
1186
#define FUSE_CKDIV8 ~_BV(7) /* Divide clock by 8 */
1180
#define FUSE_CKSEL0 (unsigned char)~_BV(0) /* Select Clock Source */
1181
#define FUSE_CKSEL1 (unsigned char)~_BV(1) /* Select Clock Source */
1182
#define FUSE_CKSEL2 (unsigned char)~_BV(2) /* Select Clock Source */
1183
#define FUSE_CKSEL3 (unsigned char)~_BV(3) /* Select Clock Source */
1184
#define FUSE_SUT0 (unsigned char)~_BV(4) /* Select start-up time */
1185
#define FUSE_SUT1 (unsigned char)~_BV(5) /* Select start-up time */
1186
#define FUSE_CKOUT (unsigned char)~_BV(6) /* Oscillator output option */
1187
#define FUSE_CKDIV8 (unsigned char)~_BV(7) /* Divide clock by 8 */
1187
1188
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
1189
1190
/* High Fuse Byte */
1190
#define FUSE_BODLEVEL0 ~_BV(0)
1191
#define FUSE_BODLEVEL1 ~_BV(1)
1192
#define FUSE_BODLEVEL2 ~_BV(2)
1193
#define FUSE_EESAVE ~_BV(3) /* EEPROM memory is preserved through chip erase */
1194
#define FUSE_WDTON ~_BV(4) /* Watchdog timer always on */
1195
#define FUSE_SPIEN ~_BV(5) /* Enable Serial programming and Data Downloading */
1196
#define FUSE_DWEN ~_BV(6) /* debugWIRE Enable */
1197
#define FUSE_RSTDISBL ~_BV(7) /* External Reset Diasble */
1191
#define FUSE_BODLEVEL0 (unsigned char)~_BV(0)
1192
#define FUSE_BODLEVEL1 (unsigned char)~_BV(1)
1193
#define FUSE_BODLEVEL2 (unsigned char)~_BV(2)
1194
#define FUSE_EESAVE (unsigned char)~_BV(3) /* EEPROM memory is preserved through chip erase */
1195
#define FUSE_WDTON (unsigned char)~_BV(4) /* Watchdog timer always on */
1196
#define FUSE_SPIEN (unsigned char)~_BV(5) /* Enable Serial programming and Data Downloading */
1197
#define FUSE_DWEN (unsigned char)~_BV(6) /* debugWIRE Enable */
1198
#define FUSE_RSTDISBL (unsigned char)~_BV(7) /* External Reset Diasble */
1198
1199
#define HFUSE_DEFAULT (FUSE_SPIEN)
1200
1201
/* Extended Fuse Byte */
1201
#define FUSE_BOOTRST ~_BV(0) /* Select Reset Vector */
1202
#define FUSE_BOOTSZ0 ~_BV(1) /* Select Boot Size */
1203
#define FUSE_BOOTSZ1 ~_BV(2) /* Select Boot Size */
1204
#define FUSE_PSCRV ~_BV(4)
1205
#define FUSE_PSC0RB ~_BV(5)
1206
#define FUSE_PSC1RB ~_BV(6)
1207
#define FUSE_PSC2RB ~_BV(7)
1202
#define FUSE_BOOTRST (unsigned char)~_BV(0) /* Select Reset Vector */
1203
#define FUSE_BOOTSZ0 (unsigned char)~_BV(1) /* Select Boot Size */
1204
#define FUSE_BOOTSZ1 (unsigned char)~_BV(2) /* Select Boot Size */
1205
#define FUSE_PSCRV (unsigned char)~_BV(4)
1206
#define FUSE_PSC0RB (unsigned char)~_BV(5)
1207
#define FUSE_PSC1RB (unsigned char)~_BV(6)
1208
#define FUSE_PSC2RB (unsigned char)~_BV(7)
1208
1209
#define EFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1)