This repository has been archived on 2024-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
SummerSchool2-Controller/306-controller_interface.X/middleware/eeprom_interface.c

37 lines
638 B
C
Raw Normal View History

2023-08-27 15:39:45 +00:00
/**
2023-08-27 19:35:19 +00:00
* @author R<EFBFBD>mi Heredero
2023-08-27 15:39:45 +00:00
* @version 1.0.0
* @date August 2023
* @file eeprom_interface.h
*/
#include "eeprom_interface.h"
2023-08-27 19:35:19 +00:00
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) {
}