Implement raw EEPROM read and write functionality

This commit is contained in:
2024-09-20 16:56:29 +02:00
parent 171e827ab5
commit 29b0ace897
4 changed files with 93 additions and 21 deletions

14
src/common/memory.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef MAD_CORE_COMMON_MEMORY_H
#define MAD_CORE_COMMON_MEMORY_H
typedef struct mem_data_s mem_data_t;
struct mem_data_s {
byte sentinel; // Data marker bit
word value[2]; // Values to be written
};
int MEM_Read(mem_data_t *out);
int MEM_Write(mem_data_t *in);
#endif // MAD_CORE_COMMON_MEMORY_H