Content originally posted in LPCWare by jbelectronics on Wed Mar 12 05:35:39 MST 2014
Dear Chris,
How are you?
Finished!
//Return Code CMD_SUCCESS | SRC_ADDR_NOT_MAPPED | DST_ADDR_NOT_MAPPED
void WriteEEPROM( uint8_t* eeAddress, uint8_t* buffAddress, uint32_t byteCount )
{
unsigned int command[5], result[4];
command[0] = 61;
command[1] = (uint32_t) eeAddress;
command[2] = (uint32_t) buffAddress;
command[3] = byteCount;
command[4] = SystemCoreClock/1000;
/* Invoke IAP call...*/
iap_entry(command, result);
if (0 != result[0])
{
//Trap error
while(1);
}
return;
}
//Return Code CMD_SUCCESS | SRC_ADDR_NOT_MAPPED | DST_ADDR_NOT_MAPPED
void ReadEEPROM( uint8_t* eeAddress, uint8_t* buffAddress, uint32_t byteCount )
{
unsigned int command[5], result[4];
command[0] = 62;
command[1] = (uint32_t) eeAddress;
command[2] = (uint32_t) buffAddress;
command[3] = byteCount;
command[4] = SystemCoreClock/1000;
/* Invoke IAP call...*/
iap_entry( command, result);
if (0 != result[0])
{
//Trap error
while(1);
}
return;
}
Thanks for your help
Best regards,