Data Structures | |
struct | A_BLOCK_LINK |
Macros | |
#define | heapBITS_PER_BYTE ( ( size_t ) 8 ) |
#define | heapMINIMUM_BLOCK_SIZE ( ( size_t ) ( xHeapStructSize << 1 ) ) |
#define | MPU_WRAPPERS_INCLUDED_FROM_API_FILE |
Typedefs | |
typedef struct A_BLOCK_LINK | BlockLink_t |
Functions | |
static void | prvHeapInit (void) |
static void | prvInsertBlockIntoFreeList (BlockLink_t *pxBlockToInsert) |
void * | pvPortMalloc (size_t xWantedSize) |
void | vApplicationMallocFailedHook (void) |
void | vPortFree (void *pv) |
void | vPortInitialiseBlocks (void) |
size_t | xPortGetFreeHeapSize (void) |
size_t | xPortGetMinimumEverFreeHeapSize (void) |
Variables | |
static BlockLink_t * | pxEnd = NULL |
static uint8_t | ucHeap [configTOTAL_HEAP_SIZE] |
static size_t | xBlockAllocatedBit = 0 |
static size_t | xFreeBytesRemaining = 0U |
static const size_t | xHeapStructSize = ( sizeof( BlockLink_t ) + ( ( size_t ) ( portBYTE_ALIGNMENT - 1 ) ) ) & ~( ( size_t ) portBYTE_ALIGNMENT_MASK ) |
static size_t | xMinimumEverFreeBytesRemaining = 0U |
static BlockLink_t | xStart |
#define heapBITS_PER_BYTE ( ( size_t ) 8 ) |
Referenced by prvHeapInit().
#define heapMINIMUM_BLOCK_SIZE ( ( size_t ) ( xHeapStructSize << 1 ) ) |
Referenced by pvPortMalloc().
#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE |
typedef struct A_BLOCK_LINK BlockLink_t |
References configTOTAL_HEAP_SIZE, heapBITS_PER_BYTE, NULL, pxEnd, A_BLOCK_LINK::pxNextFreeBlock, ucHeap, A_BLOCK_LINK::xBlockSize, and xHeapStructSize.
Referenced by pvPortMalloc().
|
static |
References mtCOVERAGE_TEST_MARKER, pxEnd, A_BLOCK_LINK::pxNextFreeBlock, and A_BLOCK_LINK::xBlockSize.
Referenced by pvPortMalloc(), and vPortFree().
void* pvPortMalloc | ( | size_t | xWantedSize | ) |
References configASSERT, heapMINIMUM_BLOCK_SIZE, mtCOVERAGE_TEST_MARKER, NULL, prvHeapInit(), prvInsertBlockIntoFreeList(), A_BLOCK_LINK::pxNextFreeBlock, traceMALLOC, vApplicationMallocFailedHook(), void, vTaskSuspendAll(), xBlockAllocatedBit, A_BLOCK_LINK::xBlockSize, xFreeBytesRemaining, xHeapStructSize, xStart, and xTaskResumeAll().
Referenced by prvAllocateTCBAndStack(), u8_encode(), vTaskList(), xEventGroupCreate(), xQueueCreateMutex(), xQueueGenericCreate(), and xTimerCreate().
Referenced by pvPortMalloc().
References configASSERT, mtCOVERAGE_TEST_MARKER, NULL, prvInsertBlockIntoFreeList(), A_BLOCK_LINK::pxNextFreeBlock, traceFREE, void, vTaskSuspendAll(), A_BLOCK_LINK::xBlockSize, xHeapStructSize, and xTaskResumeAll().
Referenced by prvAllocateTCBAndStack(), prvDeleteTCB(), prvProcessReceivedCommands(), u8_encode(), vEventGroupDelete(), vQueueDelete(), and vTaskList().
size_t xPortGetFreeHeapSize | ( | void | ) |
References xFreeBytesRemaining.
size_t xPortGetMinimumEverFreeHeapSize | ( | void | ) |
References xMinimumEverFreeBytesRemaining.
|
static |
Referenced by prvHeapInit(), and prvInsertBlockIntoFreeList().
|
static |
Referenced by prvHeapInit().
|
static |
Referenced by pvPortMalloc().
|
static |
Referenced by pvPortMalloc(), and xPortGetFreeHeapSize().
|
static |
Referenced by prvHeapInit(), pvPortMalloc(), and vPortFree().
|
static |
Referenced by xPortGetMinimumEverFreeHeapSize().
|
static |
Referenced by pvPortMalloc().