00001 #ifndef _FUSES_H
00002 #ifdef _INCLUDE_FUSES
00003 #if defined (__AVR_ATmega168__)
00004 FUSES = {
00005 .low = FUSE_CKSEL3 & FUSE_SUT0,
00006 .high = FUSE_SPIEN,
00007 .extended = FUSE_BOOTSZ1 & FUSE_BOOTSZ0,
00008 };
00009 #elif defined (__AVR_ATmega328P__)
00010 FUSES = {
00011 .low = FUSE_CKSEL3 & FUSE_SUT0,
00012 .high = FUSE_SPIEN & FUSE_BOOTSZ0 & FUSE_BOOTSZ1,
00013 .extended = EFUSE_DEFAULT,
00014 };
00015 #elif defined (__AVR_ATmega644__) || defined (__AVR_ATmega644P__)
00016 FUSES = {
00017 .low = FUSE_CKSEL3 & FUSE_SUT0,
00018 .high = FUSE_SPIEN & FUSE_BOOTSZ0 & FUSE_BOOTSZ1,
00019 .extended = EFUSE_DEFAULT,
00020 };
00021 #elif defined (__AVR_ATmega1280__)
00022 FUSES = {
00023 .low = FUSE_CKSEL3 & FUSE_SUT0,
00024 .high = FUSE_SPIEN & FUSE_BOOTSZ0 & FUSE_BOOTSZ1,
00025 .extended = EFUSE_DEFAULT,
00026 };
00027 #else
00028 #warning No fuse definitions for this chip in fuses.h!
00029 #endif
00030 #endif
00031 #endif