Data EEPROM emulation using flash for PIC32MM devices
This simple library allows emulating a data EEPROM using the flash memory for PIC32MM family devices.
About this Code Example
The library includes just 3 functions:
1. EEPROM access initialization
2. Function to write a "value" mapped by "key" (32-bit ID)."key" = 0xFFFF_FFFF is reserved. Returns zero if successful.
unsigned long DEE_Write(unsigned long key, unsigned long value);
3. Function to find/get a value matching the "key" specified. Returns 0xFFFF_FFFF if key is not found.
unsigned long DEE_Read(unsigned long key);
- Jun 20, 2017