# modules/eeprom/LPC17xx/eeprom.c File Reference

`#include <mios32.h>`
`#include "eeprom.h"`

## Defines
#define | DEBUG_VERBOSE_LEVEL 1
#define | DEBUG_MSG MIOS32_MIDI_SendDebugMessage
## Functions
s32 | EEPROM_Init (u32 mode)
| Restore the pages to a known good state in case of page's status corruption after a power loss.
s32 | EEPROM_Read (u16 VirtAddress)
| Returns the last stored variable data, if found, which correspond to the passed virtual address.
s32 | EEPROM_Write (u16 VirtAddress, u16 Data)
| Writes/upadtes variable data in EEPROM.