2a58e88fd2
Only single bytes can be read or written, page read/write will follow. Added testcode in main.c to write a value to the EEPROM and read+verify it.
10 lines
278 B
C
10 lines
278 B
C
#ifndef _EEPROM_H
|
|
#define _EEPROM_H 1
|
|
|
|
#define EEPROM_BASE_ADDR 0xA0
|
|
|
|
uint8_t eeprom_ready();
|
|
uint8_t eeprom_write_byte(uint8_t page_addr, uint8_t byte_addr, uint8_t value);
|
|
uint8_t eeprom_read_byte(uint8_t page_addr, uint8_t byte_addr, uint8_t *value);
|
|
|
|
#endif /* _EEPROM_H */
|