Data Structures | Macros | Typedefs | Functions | Variables
heap_4.c File Reference
#include <stdlib.h>
#include "FreeRTOS.h"
#include "task.h"
+ Include dependency graph for heap_4.c:

Data Structures

struct  A_BLOCK_LINK
 

Macros

#define heapBITS_PER_BYTE   ( ( size_t ) 8 )
 
#define heapMINIMUM_BLOCK_SIZE   ( ( size_t ) ( xHeapStructSize << 1 ) )
 
#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE
 

Typedefs

typedef struct A_BLOCK_LINK BlockLink_t
 

Functions

static void prvHeapInit (void)
 
static void prvInsertBlockIntoFreeList (BlockLink_t *pxBlockToInsert)
 
void * pvPortMalloc (size_t xWantedSize)
 
void vPortFree (void *pv)
 
void vPortInitialiseBlocks (void)
 
size_t xPortGetFreeHeapSize (void)
 
size_t xPortGetMinimumEverFreeHeapSize (void)
 

Variables

static BlockLink_tpxEnd = NULL
 
static uint8_t ucHeap [configTOTAL_HEAP_SIZE]
 
static size_t xBlockAllocatedBit = 0
 
static size_t xFreeBytesRemaining = 0U
 
static const size_t xHeapStructSize = ( sizeof( BlockLink_t ) + ( ( size_t ) ( portBYTE_ALIGNMENT - 1 ) ) ) & ~( ( size_t ) portBYTE_ALIGNMENT_MASK )
 
static size_t xMinimumEverFreeBytesRemaining = 0U
 
static BlockLink_t xStart
 

Macro Definition Documentation

#define heapBITS_PER_BYTE   ( ( size_t ) 8 )
#define heapMINIMUM_BLOCK_SIZE   ( ( size_t ) ( xHeapStructSize << 1 ) )
#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE

Typedef Documentation

typedef struct A_BLOCK_LINK BlockLink_t

Function Documentation

static void prvHeapInit ( void  )
static

+ Here is the caller graph for this function:

static void prvInsertBlockIntoFreeList ( BlockLink_t pxBlockToInsert)
static

+ Here is the caller graph for this function:

void* pvPortMalloc ( size_t  xWantedSize)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vPortFree ( void *  pv)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vPortInitialiseBlocks ( void  )
size_t xPortGetFreeHeapSize ( void  )
size_t xPortGetMinimumEverFreeHeapSize ( void  )

Variable Documentation

BlockLink_t * pxEnd = NULL
static
uint8_t ucHeap[configTOTAL_HEAP_SIZE]
static
size_t xBlockAllocatedBit = 0
static
size_t xFreeBytesRemaining = 0U
static
const size_t xHeapStructSize = ( sizeof( BlockLink_t ) + ( ( size_t ) ( portBYTE_ALIGNMENT - 1 ) ) ) & ~( ( size_t ) portBYTE_ALIGNMENT_MASK )
static
size_t xMinimumEverFreeBytesRemaining = 0U
static
BlockLink_t xStart
static

This documentation file has been automatically generated on Fri Oct 4 2019 03:47:18 by doxygen 1.8.8