changing circuitry to disable RTC, update initialization to match
[fw/openalt] / i2c / eeprom.h
1 #ifndef _EEPROM_H_
2 #define _EEPROM_H_
3
4 //
5 //
6 //
7 #define EEPROM_ADDRESS  (0xa0)
8 #define EEPROM_SIZE     (131072)
9 #ifdef FC1025
10 # define EEPROM_PAGESIZE (128)
11 #else
12 # define EEPROM_PAGESIZE (256)
13 #endif
14
15 //
16 //
17 //
18 void eepromInit (void);
19 int eepromSetAddress (U32 address);
20 U32 eepromGetAddress (void);
21 int eepromRead (U8 *buffer, U32 bufferLength);
22 int eepromReadAddress (U32 address, U8 *buffer, U32 bufferLength);
23 int eepromWrite (U8 *buffer, U32 bufferLength);
24 int eepromWriteAddress (U32 address, U8 *buffer, U32 bufferLength);
25 int eepromFillAddress (U32 address, U32 length, U8 fillValue);
26
27 #endif