Rev 624 Rev 816
1 #ifndef __EEPROM_H__ 1 #ifndef __EEPROM_H__
2 #define __EEPROM_H__ 2 #define __EEPROM_H__
3   3  
4 namespace EEPROM { 4 namespace EEPROM {
5 inline void Init() { 5 inline void Init() {
6 EECR = 0; // Make sure we're erasing and writing at the same time 6 EECR = 0; // Make sure we're erasing and writing at the same time
7 } 7 }
8 uint8_t GetByte(uint16_t aOfs); 8 uint8_t GetByte(uint16_t aOfs);
9 void SetByte(uint16_t aOfs,uint8_t aData); 9 void SetByte(uint16_t aOfs,uint8_t aData);
10 uint16_t GetWord(uint16_t aOfs); 10 uint16_t GetWord(uint16_t aOfs);
11 void SetWord(uint16_t aOfs,uint16_t aData); 11 void SetWord(uint16_t aOfs,uint16_t aData);
12 void Wait(); 12 void Wait();
13 } 13 }
14   14  
15 namespace EEPROM_layout { 15 namespace EEPROM_layout {
16 } 16 }
17   17  
18 #endif // __EEPROM_H__ 18 #endif // __EEPROM_H__