
#define IAP_LOCATION   0x1FFF1FF1
//#define EE_SIZE        256                     // 256 byte EEPROM configuration
#define EE_SIZE        512                     // 512 byte EEPROM configuration
//#define EE_SIZE        1024                    // 1 Kbyte EEPROM configuration
//#define EE_SIZE        2048                    // 2 Kbyte EEPROM configuration
//#define EE_SIZE        4096-64                 // max EEPROM size (the top 64 bytes are reserved)

typedef void (*IAP) (LONG command[], LONG result[]);

extern BYTE EEPROM_Read(LONG add);
extern void EEPROM_Write(LONG add, BYTE *val);
