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