Copy project
This commit is contained in:
parent
ce7a467af7
commit
26a0fd884f
173 changed files with 157458 additions and 1 deletions
15
space_game/SpaceGame/src/hardware_access/eeprom/eeprom.h
Normal file
15
space_game/SpaceGame/src/hardware_access/eeprom/eeprom.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef EEPROM_H
|
||||
#define EEPROM_H
|
||||
|
||||
#include <avr/io.h>
|
||||
|
||||
|
||||
#define STORAGE_SIZE 52
|
||||
|
||||
typedef void (*OnEEPROMFinished)(uint8_t*);
|
||||
|
||||
inline void initializeEEPROM() {
|
||||
EECR = 0; // atomic write
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue