Data Structures | |
struct | A_BLOCK_LINK |
Macros | |
#define | configADJUSTED_HEAP_SIZE ( configTOTAL_HEAP_SIZE - portBYTE_ALIGNMENT ) |
#define | heapMINIMUM_BLOCK_SIZE ( ( size_t ) ( heapSTRUCT_SIZE * 2 ) ) |
#define | MPU_WRAPPERS_INCLUDED_FROM_API_FILE |
#define | prvInsertBlockIntoFreeList(pxBlockToInsert) |
Typedefs | |
typedef struct A_BLOCK_LINK | xBlockLink |
Functions | |
static void | prvHeapInit (void) |
void * | pvPortMalloc (size_t xWantedSize) |
void | vPortFree (void *pv) |
void | vPortInitialiseBlocks (void) |
size_t | xPortGetFreeHeapSize (void) |
Variables | |
static const unsigned short | heapSTRUCT_SIZE = ( sizeof( xBlockLink ) + portBYTE_ALIGNMENT - ( sizeof( xBlockLink ) % portBYTE_ALIGNMENT ) ) |
static unsigned char | ucHeap [configTOTAL_HEAP_SIZE] |
static xBlockLink | xEnd |
static size_t | xFreeBytesRemaining = configADJUSTED_HEAP_SIZE |
static xBlockLink | xStart |
#define configADJUSTED_HEAP_SIZE ( configTOTAL_HEAP_SIZE - portBYTE_ALIGNMENT ) |
Referenced by prvHeapInit(), and pvPortMalloc().
#define heapMINIMUM_BLOCK_SIZE ( ( size_t ) ( heapSTRUCT_SIZE * 2 ) ) |
Referenced by pvPortMalloc().
#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE |
#define prvInsertBlockIntoFreeList | ( | pxBlockToInsert | ) |
Referenced by pvPortMalloc(), and vPortFree().
typedef struct A_BLOCK_LINK xBlockLink |
|
static |
References configADJUSTED_HEAP_SIZE, NULL, portPOINTER_SIZE_TYPE, A_BLOCK_LINK::pxNextFreeBlock, ucHeap, A_BLOCK_LINK::xBlockSize, and xEnd.
Referenced by pvPortMalloc().
void* pvPortMalloc | ( | size_t | xWantedSize | ) |
void vPortFree | ( | void * | pv | ) |
void vPortInitialiseBlocks | ( | void | ) |
size_t xPortGetFreeHeapSize | ( | void | ) |
|
static |
Referenced by pvPortMalloc(), and vPortFree().
|
static |
Referenced by prvHeapInit().
|
static |
Referenced by prvHeapInit().
|
static |
Referenced by xPortGetFreeHeapSize().
|
static |
Referenced by pvPortMalloc().