FreeRTOS port on GAP8/RISC-V
|
Data Structures | |
struct | BlockLink_t |
Macros | |
#define | MPU_WRAPPERS_INCLUDED_FROM_API_FILE |
#define | heapMINIMUM_BLOCK_SIZE |
#define | heapBITS_PER_BYTE |
Functions | |
static void | prvInsertBlockIntoFreeList (BlockLink_t *pxBlockToInsert) |
static void | prvHeapInit (void) |
void * | pvPortMalloc (size_t xWantedSize) |
void | vPortFree (void *pv) |
size_t | xPortGetFreeHeapSize (void) |
size_t | xPortGetMinimumEverFreeHeapSize (void) |
void | vPortInitialiseBlocks (void) |
void | vPortGetHeapStats (HeapStats_t *pxHeapStats) |
Variables | |
static uint8_t | ucHeap [configTOTAL_HEAP_SIZE] |
static const size_t | xHeapStructSize |
static BlockLink_t | xStart |
static BlockLink_t * | pxEnd |
static size_t | xFreeBytesRemaining |
static size_t | xMinimumEverFreeBytesRemaining |
static size_t | xNumberOfSuccessfulAllocations |
static size_t | xNumberOfSuccessfulFrees |
static size_t | xBlockAllocatedBit |
#define heapBITS_PER_BYTE |
Referenced by prvHeapInit().
#define heapMINIMUM_BLOCK_SIZE |
Referenced by pvPortMalloc().
#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE |
|
static |
References heapBITS_PER_BYTE, portBYTE_ALIGNMENT, pxEnd, BlockLink_t::pxNextFreeBlock, ucHeap, BlockLink_t::xBlockSize, and xHeapStructSize.
Referenced by pvPortMalloc().
|
static |
References mtCOVERAGE_TEST_MARKER, pxEnd, BlockLink_t::pxNextFreeBlock, and BlockLink_t::xBlockSize.
Referenced by pvPortMalloc(), and vPortFree().
void* pvPortMalloc | ( | size_t | xWantedSize | ) |
References configASSERT, heapMINIMUM_BLOCK_SIZE, mtCOVERAGE_TEST_MARKER, portBYTE_ALIGNMENT, prvHeapInit(), prvInsertBlockIntoFreeList(), BlockLink_t::pxNextFreeBlock, traceMALLOC, vTaskSuspendAll(), xBlockAllocatedBit, BlockLink_t::xBlockSize, xFreeBytesRemaining, xHeapStructSize, xStart, and xTaskResumeAll().
void vPortFree | ( | void * | pv | ) |
void vPortGetHeapStats | ( | HeapStats_t * | pxHeapStats | ) |
References portMAX_DELAY, BlockLink_t::pxNextFreeBlock, taskENTER_CRITICAL, taskEXIT_CRITICAL, vTaskSuspendAll(), HeapStats_t::xAvailableHeapSpaceInBytes, BlockLink_t::xBlockSize, xFreeBytesRemaining, xMinimumEverFreeBytesRemaining, HeapStats_t::xMinimumEverFreeBytesRemaining, HeapStats_t::xNumberOfFreeBlocks, xNumberOfSuccessfulAllocations, HeapStats_t::xNumberOfSuccessfulAllocations, xNumberOfSuccessfulFrees, HeapStats_t::xNumberOfSuccessfulFrees, HeapStats_t::xSizeOfLargestFreeBlockInBytes, HeapStats_t::xSizeOfSmallestFreeBlockInBytes, and xTaskResumeAll().
void vPortInitialiseBlocks | ( | void | ) |
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(), vPortGetHeapStats(), and xPortGetFreeHeapSize().
|
static |
Referenced by prvHeapInit(), pvPortMalloc(), and vPortFree().
|
static |
Referenced by vPortGetHeapStats(), and xPortGetMinimumEverFreeHeapSize().
|
static |
Referenced by vPortGetHeapStats().
|
static |
Referenced by vPortGetHeapStats().
|
static |
Referenced by pvPortMalloc().