00001 #ifndef _COPIER_H
00002 #define _COPIER_H
00003
00004
00005 #define CMD_PROGRAMMING_ENABLE 0xAC530000
00006 #define CMD_CHIP_ERASE 0xAC800000
00007 #define CMD_POLL 0xF0000000
00008
00009
00010 #define CMD_LOAD_EXTENDED_ADDRESS 0x4D000000
00011 #define CMD_LOAD_PROGMEM_HIGH_BYTE 0x48000000
00012 #define CMD_LOAD_PROGMEM_LOW_BYTE 0x40000000
00013 #define CMD_LOAD_EEPROM_PAGE 0xC1000000
00014
00015
00016 #define CMD_READ_PROGMEM_HIGH_BYTE 0x28000000
00017 #define CMD_READ_PROGMEM_LOW_BYTE 0x20000000
00018 #define CMD_READ_EEPROM 0xA0000000
00019 #define CMD_READ_LOCK_BITS 0x58000000
00020 #define CMD_READ_SIGNATURE 0x30000000
00021 #define CMD_READ_FUSE_BITS 0x50000000
00022 #define CMD_READ_FUSE_HIGH_BITS 0x58080000
00023 #define CMD_READ_FUSE_EXTENDED_BITS 0x50080000
00024 #define CMD_READ_CALIBRATION_BYTE 0x38000000
00025
00026
00027 #define CMD_WRITE_PROGMEM_PAGE 0x4C000000
00028 #define CMD_WRITE_EEPROM 0xC0000000
00029 #define CMD_WRITE_EEPROM_PAGE 0xC2000000
00030 #define CMD_WRITE_LOCK_BITS 0xACE00000
00031 #define CMD_WRITE_FUSE_BITS 0xACA00000
00032 #define CMD_WRITE_FUSE_HIGH_BITS 0xACA80000
00033 #define CMD_WRITE_FUSE_EXTENDED_BITS 0xACA40000
00034
00035
00036 #define COPIER_RESET AIO1
00037 #define COPIER_SCK AIO2
00038 #define COPIER_MOSI AIO3
00039 #define COPIER_MISO AIO4
00040
00041
00042
00043 void copy(void);
00044
00045 #endif