56 typedef unsigned short eeprom_addr_t;
60 #ifdef EEPROM_CONF_SIZE
61 #define EEPROM_SIZE (EEPROM_CONF_SIZE)
66 #ifdef EEPROM_CONF_END_ADDR
67 #define EEPROM_END_ADDR (EEPROM_CONF_END_ADDR)
69 #define EEPROM_END_ADDR (EEPROM_SIZE - 1)
85 void eeprom_write(eeprom_addr_t addr,
unsigned char *buf,
int size);
101 void eeprom_read(eeprom_addr_t addr,
unsigned char *buf,
int size);
void eeprom_read(eeprom_addr_t addr, unsigned char *buf, int size)
Read data from the EEPROM.
void eeprom_write(eeprom_addr_t addr, unsigned char *buf, int size)
Write a buffer into EEPROM.
void eeprom_init(void)
Initialize the EEPROM module.