FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heap_5.c File Reference

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)
 
void * pvPortMalloc (size_t xWantedSize)
 
void vPortFree (void *pv)
 
size_t xPortGetFreeHeapSize (void)
 
size_t xPortGetMinimumEverFreeHeapSize (void)
 
void vPortDefineHeapRegions (const HeapRegion_t *const pxHeapRegions)
 
void vPortGetHeapStats (HeapStats_t *pxHeapStats)
 

Variables

static const size_t xHeapStructSize
 
static BlockLink_t xStart
 
static BlockLink_tpxEnd
 
static size_t xFreeBytesRemaining
 
static size_t xMinimumEverFreeBytesRemaining
 
static size_t xNumberOfSuccessfulAllocations
 
static size_t xNumberOfSuccessfulFrees
 
static size_t xBlockAllocatedBit
 

Macro Definition Documentation

#define heapBITS_PER_BYTE

Referenced by vPortDefineHeapRegions().

#define heapMINIMUM_BLOCK_SIZE

Referenced by pvPortMalloc().

#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE

Function Documentation

static void prvInsertBlockIntoFreeList ( BlockLink_t pxBlockToInsert)
static
size_t xPortGetFreeHeapSize ( void  )

References xFreeBytesRemaining.

size_t xPortGetMinimumEverFreeHeapSize ( void  )

Variable Documentation

size_t xBlockAllocatedBit
static

Referenced by pvPortMalloc().

size_t xFreeBytesRemaining
static
const size_t xHeapStructSize
static
size_t xMinimumEverFreeBytesRemaining
static
size_t xNumberOfSuccessfulAllocations
static

Referenced by vPortGetHeapStats().

size_t xNumberOfSuccessfulFrees
static

Referenced by vPortGetHeapStats().

BlockLink_t xStart
static

Referenced by pvPortMalloc().