Classes | 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:

Go to the source code of this file.

Classes

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

◆ heapBITS_PER_BYTE

#define heapBITS_PER_BYTE   ( ( size_t ) 8 )

Definition at line 98 of file heap_4.c.

◆ heapMINIMUM_BLOCK_SIZE

#define heapMINIMUM_BLOCK_SIZE   ( ( size_t ) ( xHeapStructSize << 1 ) )

Definition at line 95 of file heap_4.c.

◆ MPU_WRAPPERS_INCLUDED_FROM_API_FILE

#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE

Definition at line 83 of file heap_4.c.

Typedef Documentation

◆ BlockLink_t

typedef struct A_BLOCK_LINK BlockLink_t

Function Documentation

◆ prvHeapInit()

static void prvHeapInit ( void  )
static

Definition at line 377 of file heap_4.c.

◆ prvInsertBlockIntoFreeList()

static void prvInsertBlockIntoFreeList ( BlockLink_t pxBlockToInsert)
static

Definition at line 425 of file heap_4.c.

◆ pvPortMalloc()

void* pvPortMalloc ( size_t  xWantedSize)

Definition at line 155 of file heap_4.c.

◆ vPortFree()

void vPortFree ( void *  pv)

Definition at line 311 of file heap_4.c.

◆ vPortInitialiseBlocks()

void vPortInitialiseBlocks ( void  )

Definition at line 371 of file heap_4.c.

◆ xPortGetFreeHeapSize()

size_t xPortGetFreeHeapSize ( void  )

Definition at line 359 of file heap_4.c.

◆ xPortGetMinimumEverFreeHeapSize()

size_t xPortGetMinimumEverFreeHeapSize ( void  )

Definition at line 365 of file heap_4.c.

Variable Documentation

◆ pxEnd

BlockLink_t * pxEnd = NULL
static

Definition at line 140 of file heap_4.c.

◆ ucHeap

uint8_t ucHeap[configTOTAL_HEAP_SIZE]
static

Definition at line 106 of file heap_4.c.

◆ xBlockAllocatedBit

size_t xBlockAllocatedBit = 0
static

Definition at line 151 of file heap_4.c.

◆ xFreeBytesRemaining

size_t xFreeBytesRemaining = 0U
static

Definition at line 144 of file heap_4.c.

◆ xHeapStructSize

const size_t xHeapStructSize = ( sizeof( BlockLink_t ) + ( ( size_t ) ( portBYTE_ALIGNMENT - 1 ) ) ) & ~( ( size_t ) portBYTE_ALIGNMENT_MASK )
static

Definition at line 137 of file heap_4.c.

◆ xMinimumEverFreeBytesRemaining

size_t xMinimumEverFreeBytesRemaining = 0U
static

Definition at line 145 of file heap_4.c.

◆ xStart

BlockLink_t xStart
static

Definition at line 140 of file heap_4.c.



inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:05