minor formatting

This commit is contained in:
Cobus van Eeden 2020-12-05 15:58:18 -08:00
parent d00ae49986
commit 8728996caf
3 changed files with 7 additions and 7 deletions

View file

@ -125,7 +125,7 @@ void * pvPortMalloc( size_t xWantedSize )
vTaskSuspendAll(); vTaskSuspendAll();
{ {
/* If this is the first call to malloc then the heap will require /* If this is the first call to malloc then the heap will require
* initialisation to setup the list of free blocks. */ * initialisation to setup the list of free blocks. */
if( xHeapHasBeenInitialised == pdFALSE ) if( xHeapHasBeenInitialised == pdFALSE )
{ {
prvHeapInit(); prvHeapInit();
@ -133,7 +133,7 @@ void * pvPortMalloc( size_t xWantedSize )
} }
/* The wanted size must be increased so it can contain a BlockLink_t /* The wanted size must be increased so it can contain a BlockLink_t
* structure in addition to the requested amount of bytes. */ * structure in addition to the requested amount of bytes. */
if( xWantedSize > 0 ) if( xWantedSize > 0 )
{ {
/* Ensure xWantedSize will never wrap after adjustment, even if we need /* Ensure xWantedSize will never wrap after adjustment, even if we need

View file

@ -146,7 +146,7 @@ void * pvPortMalloc( size_t xWantedSize )
xWantedSize += xHeapStructSize; xWantedSize += xHeapStructSize;
/* Ensure that blocks are always aligned to the required number /* Ensure that blocks are always aligned to the required number
* of bytes. */ * of bytes. */
if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 ) if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
{ {
/* Byte alignment required. (check for overflow again) */ /* Byte alignment required. (check for overflow again) */
@ -179,7 +179,7 @@ void * pvPortMalloc( size_t xWantedSize )
if( ( xWantedSize > 0 ) && ( xWantedSize < xFreeBytesRemaining ) ) if( ( xWantedSize > 0 ) && ( xWantedSize < xFreeBytesRemaining ) )
{ {
/* Traverse the list from the start (lowest address) block until /* Traverse the list from the start (lowest address) block until
* one of adequate size is found. */ * one of adequate size is found. */
pxPreviousBlock = &xStart; pxPreviousBlock = &xStart;
pxBlock = xStart.pxNextFreeBlock; pxBlock = xStart.pxNextFreeBlock;
@ -190,7 +190,7 @@ void * pvPortMalloc( size_t xWantedSize )
} }
/* If the end marker was reached then a block of adequate size /* If the end marker was reached then a block of adequate size
* was not found. */ * was not found. */
if( pxBlock != pxEnd ) if( pxBlock != pxEnd )
{ {
/* Return the memory space pointed to - jumping over the /* Return the memory space pointed to - jumping over the

View file

@ -182,7 +182,7 @@ void * pvPortMalloc( size_t xWantedSize )
if( ( xWantedSize > 0 ) && ( xWantedSize < xFreeBytesRemaining ) ) if( ( xWantedSize > 0 ) && ( xWantedSize < xFreeBytesRemaining ) )
{ {
/* Traverse the list from the start (lowest address) block until /* Traverse the list from the start (lowest address) block until
* one of adequate size is found. */ * one of adequate size is found. */
pxPreviousBlock = &xStart; pxPreviousBlock = &xStart;
pxBlock = xStart.pxNextFreeBlock; pxBlock = xStart.pxNextFreeBlock;
@ -193,7 +193,7 @@ void * pvPortMalloc( size_t xWantedSize )
} }
/* If the end marker was reached then a block of adequate size /* If the end marker was reached then a block of adequate size
* was not found. */ * was not found. */
if( pxBlock != pxEnd ) if( pxBlock != pxEnd )
{ {
/* Return the memory space pointed to - jumping over the /* Return the memory space pointed to - jumping over the