implement POC for EEPROM

This commit is contained in:
2023-08-27 21:35:19 +02:00
parent 5bbc7bc0c3
commit 2b31ef5c06
8 changed files with 61 additions and 12 deletions

View File

@@ -1,8 +1,36 @@
/**
* @author R<>mi Heredero
* @author R<>mi Heredero
* @version 1.0.0
* @date August 2023
* @file eeprom_interface.h
*/
#include "eeprom_interface.h"
typedef union {
struct {
uint8_t byte0;
uint8_t byte1;
uint8_t byte2;
uint8_t byte3;
} separate;
struct {
uint32_t bytes;
} full;
} BYTES_4;
void MEM_write_one_byte(uint8_t addresse, uint8_t data) {
DATAEE_WriteByte(addresse, data);
}
void MEM_write_four_byte(uint8_t addresse, uint32_t data) {
}
uint8_t MEM_read_one_byte(uint8_t adresse) {
return DATAEE_ReadByte(adresse);
}
uint32_t MEM_read_four_byte(uint8_t adresse) {
}