|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Go to the source code of this file.
Classes | |
| struct | A_BLOCK_LINK |
Macros | |
| #define | MPU_WRAPPERS_INCLUDED_FROM_API_FILE |
| #define | configHEAP_CLEAR_MEMORY_ON_FREE 0 |
| #define | heapMINIMUM_BLOCK_SIZE ( ( size_t ) ( xHeapStructSize << 1 ) ) |
| #define | heapBITS_PER_BYTE ( ( size_t ) 8 ) |
| #define | heapSIZE_MAX ( ~( ( size_t ) 0 ) ) |
| #define | heapMULTIPLY_WILL_OVERFLOW(a, b) |
| #define | heapADD_WILL_OVERFLOW(a, b) |
| #define | heapBLOCK_ALLOCATED_BITMASK ( ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 ) ) |
| #define | heapBLOCK_SIZE_IS_VALID(xBlockSize) |
| #define | heapBLOCK_IS_ALLOCATED(pxBlock) |
| #define | heapALLOCATE_BLOCK(pxBlock) |
| #define | heapFREE_BLOCK(pxBlock) |
Typedefs | |
| typedef struct A_BLOCK_LINK | BlockLink_t |
Functions | |
| static void | prvInsertBlockIntoFreeList (BlockLink_t *pxBlockToInsert) PRIVILEGED_FUNCTION |
| static void | prvHeapInit (void) |
| void | vPortFree (void *pv) |
| size_t | xPortGetFreeHeapSize (void) |
| size_t | xPortGetMinimumEverFreeHeapSize (void) |
| void | vPortInitialiseBlocks (void) |
| void * | pvPortCalloc (size_t xNum, size_t xSize) |
| void | vPortGetHeapStats (HeapStats_t *pxHeapStats) |
Variables | |
| static PRIVILEGED_DATA uint8_t | ucHeap [configTOTAL_HEAP_SIZE] |
Definition at line 71 of file heap_4.c.
Referenced by prvHeapInit().
| #define heapALLOCATE_BLOCK | ( | pxBlock | ) |
Definition at line 80 of file heap_4.c.
Referenced by prvHeapInit().
| #define heapBLOCK_ALLOCATED_BITMASK ( ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 ) ) |
| #define heapBLOCK_IS_ALLOCATED | ( | pxBlock | ) |
Definition at line 79 of file heap_4.c.
Referenced by vPortFree().
| #define heapBLOCK_SIZE_IS_VALID | ( | xBlockSize | ) |
Definition at line 78 of file heap_4.c.
Referenced by prvHeapInit().
| #define heapFREE_BLOCK | ( | pxBlock | ) |
Definition at line 81 of file heap_4.c.
Referenced by vPortFree().
| #define heapMINIMUM_BLOCK_SIZE ( ( size_t ) ( xHeapStructSize << 1 ) ) |
Definition at line 59 of file heap_4.c.
Referenced by prvHeapInit().
| typedef struct A_BLOCK_LINK BlockLink_t |
|
static |
Definition at line 117 of file heap_4.c.
References configASSERT, heapADD_WILL_OVERFLOW, heapALLOCATE_BLOCK, heapBLOCK_SIZE_IS_VALID, heapMINIMUM_BLOCK_SIZE, mtCOVERAGE_TEST_MARKER, NULL, portBYTE_ALIGNMENT, PRIVILEGED_DATA, PRIVILEGED_FUNCTION, prvHeapInit(), prvInsertBlockIntoFreeList(), A_BLOCK_LINK::pxNextFreeBlock, traceMALLOC, vApplicationMallocFailedHook(), vTaskSuspendAll(), A_BLOCK_LINK::xBlockSize, and xTaskResumeAll().
Referenced by prvHeapInit().
|
static |
Definition at line 442 of file heap_4.c.
References mtCOVERAGE_TEST_MARKER, A_BLOCK_LINK::pxNextFreeBlock, and A_BLOCK_LINK::xBlockSize.
Referenced by prvHeapInit(), and vPortFree().
| void * pvPortCalloc | ( | size_t | xNum, |
| size_t | xSize ) |
Definition at line 378 of file heap_4.c.
References heapMULTIPLY_WILL_OVERFLOW, NULL, and pvPortMalloc().
| void vPortFree | ( | void * | pv | ) |
Definition at line 307 of file heap_4.c.
References configASSERT, heapBLOCK_IS_ALLOCATED, heapFREE_BLOCK, mtCOVERAGE_TEST_MARKER, NULL, prvInsertBlockIntoFreeList(), A_BLOCK_LINK::pxNextFreeBlock, traceFREE, vTaskSuspendAll(), A_BLOCK_LINK::xBlockSize, and xTaskResumeAll().
Referenced by osThreadEnumerate(), vEventGroupDelete(), vQueueDelete(), and vStreamBufferDelete().
| void vPortGetHeapStats | ( | HeapStats_t * | pxHeapStats | ) |
Definition at line 505 of file heap_4.c.
References NULL, portMAX_DELAY, A_BLOCK_LINK::pxNextFreeBlock, taskENTER_CRITICAL, taskEXIT_CRITICAL, vTaskSuspendAll(), xHeapStats::xAvailableHeapSpaceInBytes, A_BLOCK_LINK::xBlockSize, xHeapStats::xMinimumEverFreeBytesRemaining, xHeapStats::xNumberOfFreeBlocks, xHeapStats::xNumberOfSuccessfulAllocations, xHeapStats::xNumberOfSuccessfulFrees, xHeapStats::xSizeOfLargestFreeBlockInBytes, xHeapStats::xSizeOfSmallestFreeBlockInBytes, and xTaskResumeAll().
|
static |