UoS³ Flight Computer Firmware
 All Data Structures Files Functions Groups Pages
eeprom.h
1 
11 #ifndef __EEPROM_H__
12 #define __EEPROM_H__
13 
14 #include <stddef.h>
15 #include <stdint.h>
16 #include <stdbool.h>
17 
18 /* 2KB TM4C123GH6PM */
19 #define EEPROM_SIZE 0x800
20 
21 #define EEPROM_MAX_ADDRESS (EEPROM_SIZE - 1)
22 
23 #define EEPROM_MISSION_DATA_ADDRESS 0x0000
24 #define EEPROM_CONFIGURATION_DATA_ADDRESS 0x0100
25 
33 void EEPROM_init(void);
34 
43 bool EEPROM_selfTest(void);
44 
55 void EEPROM_write(uint32_t address, uint32_t *data, uint32_t length);
56 
67 void EEPROM_read(uint32_t address, uint32_t *data, uint32_t length);
68 
69 #endif /* __EEPROM_H__ */
void EEPROM_write(uint32_t address, uint32_t *data, uint32_t length)
Definition: eeprom.c:23
bool EEPROM_selfTest(void)
Definition: eeprom.c:18
void EEPROM_read(uint32_t address, uint32_t *data, uint32_t length)
Definition: eeprom.c:31
void EEPROM_init(void)
Definition: eeprom.c:13