FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heap_4.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)
 
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_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 prvHeapInit().

#define heapMINIMUM_BLOCK_SIZE

Referenced by pvPortMalloc().

#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE

Function Documentation

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

References xFreeBytesRemaining.

size_t xPortGetMinimumEverFreeHeapSize ( void  )

Variable Documentation

BlockLink_t * pxEnd
static
uint8_t ucHeap[configTOTAL_HEAP_SIZE]
static

Referenced by prvHeapInit().

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().