#include <avr/io.h>
#include <stdbool.h>
#include <string.h>
Defines | |
#define | DEREF(handle, type) (*(type*)handle) |
#define | ALLOCABLE_BYTES (1UL * NUM_BLOCKS * BLOCK_SIZE) |
Typedefs | |
typedef const void ** | Mem_Handle_t |
typedef uint32_t | Alloc_Size_t |
typedef uint32_t | Block_Number_t |
typedef uint32_t | Handle_Number_t |
Functions | |
Mem_Handle_t | Mem_Alloc (const Alloc_Size_t Bytes) |
Mem_Handle_t | Mem_Calloc (const Alloc_Size_t Bytes) |
Mem_Handle_t | Mem_Realloc (Mem_Handle_t CurrAllocHdl, const Alloc_Size_t Bytes) |
void | Mem_Free (Mem_Handle_t CurrAllocHdl) |
Block_Number_t | Mem_TotalFreeBlocks (void) |
Handle_Number_t | Mem_TotalFreeHandles (void) |