crashtest-r0ket/eeprom/eeprom.h
bsx 2a58e88fd2 added eeprom read/write code
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.
2011-05-19 14:05:28 +02:00

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 */