39 #ifndef _AVR_IOM640_H_ 40 #define _AVR_IOM640_H_ 1 53 #define SPM_PAGESIZE 256 55 #define XRAMEND 0xFFFF 58 #define FLASHEND 0xFFFF 63 #define FUSE_MEMORY_SIZE 3 66 #define FUSE_CKSEL0 (unsigned char)~_BV(0) 67 #define FUSE_CKSEL1 (unsigned char)~_BV(1) 68 #define FUSE_CKSEL2 (unsigned char)~_BV(2) 69 #define FUSE_CKSEL3 (unsigned char)~_BV(3) 70 #define FUSE_SUT0 (unsigned char)~_BV(4) 71 #define FUSE_SUT1 (unsigned char)~_BV(5) 72 #define FUSE_CKOUT (unsigned char)~_BV(6) 73 #define FUSE_CKDIV8 (unsigned char)~_BV(7) 74 #define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8) 77 #define FUSE_BOOTRST (unsigned char)~_BV(0) 78 #define FUSE_BOOTSZ0 (unsigned char)~_BV(1) 79 #define FUSE_BOOTSZ1 (unsigned char)~_BV(2) 80 #define FUSE_EESAVE (unsigned char)~_BV(3) 81 #define FUSE_WDTON (unsigned char)~_BV(4) 82 #define FUSE_SPIEN (unsigned char)~_BV(5) 83 #define FUSE_JTAGEN (unsigned char)~_BV(6) 84 #define FUSE_OCDEN (unsigned char)~_BV(7) 85 #define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_SPIEN & FUSE_JTAGEN) 88 #define FUSE_BODLEVEL0 (unsigned char)~_BV(0) 89 #define FUSE_BODLEVEL1 (unsigned char)~_BV(1) 90 #define FUSE_BODLEVEL2 (unsigned char)~_BV(2) 91 #define EFUSE_DEFAULT (0xFF) 95 #define __LOCK_BITS_EXIST 96 #define __BOOT_LOCK_BITS_0_EXIST 97 #define __BOOT_LOCK_BITS_1_EXIST 101 #define SIGNATURE_0 0x1E 102 #define SIGNATURE_1 0x96 103 #define SIGNATURE_2 0x08 Definitions for ATmega640/1280/1281/2560/2561.