STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Data Structures | Macros | Typedefs | Functions
heap_2.c File Reference
#include <stdlib.h>
#include "FreeRTOS.h"
#include "task.h"

Go to the source code of this file.

Data Structures

struct  A_BLOCK_LINK
 

Macros

#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE
 
#define configADJUSTED_HEAP_SIZE   ( configTOTAL_HEAP_SIZE - portBYTE_ALIGNMENT )
 
#define heapMINIMUM_BLOCK_SIZE   ( ( size_t ) ( heapSTRUCT_SIZE * 2 ) )
 
#define prvInsertBlockIntoFreeList(pxBlockToInsert)
 

Typedefs

typedef struct A_BLOCK_LINK BlockLink_t
 

Functions

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

Macro Definition Documentation

#define configADJUSTED_HEAP_SIZE   ( configTOTAL_HEAP_SIZE - portBYTE_ALIGNMENT )

Definition at line 92 of file heap_2.c.

#define heapMINIMUM_BLOCK_SIZE   ( ( size_t ) ( heapSTRUCT_SIZE * 2 ) )

Definition at line 112 of file heap_2.c.

#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE

Definition at line 84 of file heap_2.c.

#define prvInsertBlockIntoFreeList (   pxBlockToInsert)
Value:
{ \
BlockLink_t *pxIterator; \
size_t xBlockSize; \
\
xBlockSize = pxBlockToInsert->xBlockSize; \
\
/* Iterate through the list until a block is found that has a larger size */ \
/* than the block we are inserting. */ \
for( pxIterator = &xStart; pxIterator->pxNextFreeBlock->xBlockSize < xBlockSize; pxIterator = pxIterator->pxNextFreeBlock ) \
{ \
/* There is nothing to do here - just iterate to the correct position. */ \
} \
\
/* Update the list to include the block being inserted in the correct */ \
/* position. */ \
pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock; \
pxIterator->pxNextFreeBlock = pxBlockToInsert; \
}
struct A_BLOCK_LINK BlockLink_t
size_t xBlockSize
Definition: heap_2.c:107

Definition at line 128 of file heap_2.c.

Typedef Documentation

typedef struct A_BLOCK_LINK BlockLink_t

Function Documentation

void* pvPortMalloc ( size_t  xWantedSize)

Definition at line 149 of file heap_2.c.

void vPortFree ( void *  pv)

Definition at line 241 of file heap_2.c.

void vPortInitialiseBlocks ( void  )

Definition at line 274 of file heap_2.c.

size_t xPortGetFreeHeapSize ( void  )

Definition at line 268 of file heap_2.c.