Macros | |
#define | SDRH_BLKSIZE 128 |
#define | SDRH_HEAPSIZE 0x200000 |
#define | SDRH_NBLOCKS (SDRH_HEAPSIZE / SDRH_BLKSIZE) |
#define | SDRH_ADDR(block) (SDRH_START + block * SDRH_BLKSIZE) |
Functions | |
static uint16_t | __attribute__ ((section(".user_sdram"))) |
static bool | _isValidPtr (void *ptr) |
static uint32_t | _find_area (uint32_t nblocks) |
void * | SDRH_malloc (size_t nbytes) |
void | SDRH_free (void *ptr) |
void * | SDRH_realloc (void *ptr, size_t nbytes) |
void * | SDRH_calloc (size_t nbytes) |
Variables | |
uint8_t | __sdram_heap_start__ |
uint8_t | __sdram_heap_end__ |
static void *const | SDRH_START = &__sdram_heap_start__ |
static void *const | SDRH_END = &__sdram_heap_end__ |
#define SDRH_ADDR | ( | block | ) | (SDRH_START + block * SDRH_BLKSIZE) |
#define SDRH_BLKSIZE 128 |
#define SDRH_HEAPSIZE 0x200000 |
#define SDRH_NBLOCKS (SDRH_HEAPSIZE / SDRH_BLKSIZE) |
|
static |
|
static |
|
static |
void* SDRH_calloc | ( | size_t | nbytes | ) |
void* SDRH_malloc | ( | size_t | nbytes | ) |
uint8_t __sdram_heap_end__ |
uint8_t __sdram_heap_start__ |
|
static |
|
static |