Define memory manager constants and add TODO
This commit is contained in:
@@ -2,14 +2,21 @@
|
||||
|
||||
#include <util/atomic.h>
|
||||
|
||||
static int WriteRaw(word addr, byte data);
|
||||
#define MEM_SIZE 1024
|
||||
#define BLOCK_SIZE sizeof(mem_data_t)
|
||||
#define MAX_BLOCKS (MEM_SIZE / BLOCK_SIZE)
|
||||
#define SENTINEL_MASK BIT(8)
|
||||
|
||||
static byte ReadRaw(word addr);
|
||||
static int WriteRaw(word addr, byte data);
|
||||
static word GetBlockAddress(void);
|
||||
|
||||
int MEM_Read(mem_data_t *out)
|
||||
{
|
||||
// TODO
|
||||
UNUSED(out);
|
||||
UNUSED(ReadRaw);
|
||||
UNUSED(GetBlockAddress);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -30,6 +37,11 @@ void MEM_Dump(void)
|
||||
// }
|
||||
}
|
||||
|
||||
static word GetBlockAddress(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int WriteRaw(word addr, byte data)
|
||||
{
|
||||
// The EEMWE bit determines whether setting EEWE to
|
||||
|
||||
Reference in New Issue
Block a user