UoS³ Flight Computer Firmware
 All Data Structures Files Functions Groups Pages
eeprom.c
1 
10 #include "board.h"
11 #include "../eeprom.h"
12 
13 #include "driverlib/sysctl.h"
14 #include "driverlib/eeprom.h"
15 
16 void EEPROM_init(void)
17 {
18  SysCtlPeripheralEnable(SYSCTL_PERIPH_EEPROM0);
19 
20  EEPROMInit();
21 }
22 
23 bool EEPROM_selfTest(void)
24 {
25  return (EEPROMSizeGet() == EEPROM_SIZE);
26 }
27 
28 void EEPROM_write(uint32_t address, uint32_t *data, uint32_t length)
29 {
30  EEPROMProgram(data, address, length);
31 }
32 
33 void EEPROM_read(uint32_t address, uint32_t *data, uint32_t length)
34 {
35  EEPROMRead(data, address, length);
36 }
37 
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