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

Data Structures

struct  BlockLink_t
 

Macros

#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE
 
#define configADJUSTED_HEAP_SIZE
 
#define heapMINIMUM_BLOCK_SIZE
 
#define prvInsertBlockIntoFreeList(pxBlockToInsert)
 

Functions

static void prvHeapInit (void)
 
void * pvPortMalloc (size_t xWantedSize)
 
void vPortFree (void *pv)
 
size_t xPortGetFreeHeapSize (void)
 
void vPortInitialiseBlocks (void)
 

Variables

static uint8_t ucHeap [configTOTAL_HEAP_SIZE]
 
static const uint16_t heapSTRUCT_SIZE
 
static BlockLink_t xStart
 
static BlockLink_t xEnd
 
static size_t xFreeBytesRemaining
 

Macro Definition Documentation

#define configADJUSTED_HEAP_SIZE

Referenced by prvHeapInit(), and pvPortMalloc().

#define heapMINIMUM_BLOCK_SIZE

Referenced by pvPortMalloc().

#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE
#define prvInsertBlockIntoFreeList (   pxBlockToInsert)

Referenced by pvPortMalloc(), and vPortFree().

Function Documentation

void vPortInitialiseBlocks ( void  )
size_t xPortGetFreeHeapSize ( void  )

References xFreeBytesRemaining.

Variable Documentation

const uint16_t heapSTRUCT_SIZE
static

Referenced by pvPortMalloc(), and vPortFree().

uint8_t ucHeap[configTOTAL_HEAP_SIZE]
static

Referenced by prvHeapInit().

BlockLink_t xEnd
static

Referenced by prvHeapInit().

size_t xFreeBytesRemaining
static

Referenced by xPortGetFreeHeapSize().

BlockLink_t xStart
static

Referenced by pvPortMalloc().