mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 02:32:42 -05:00 
			
		
		
		
	Change where the free heap space variable is initialised.
This commit is contained in:
		
							parent
							
								
									205b0dd863
								
							
						
					
					
						commit
						d3f5c5348c
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -95,7 +95,7 @@ static xBlockLink xStart, xEnd;
 | 
			
		|||
 | 
			
		||||
/* Keeps track of the number of free bytes remaining, but says nothing about
 | 
			
		||||
fragmentation. */
 | 
			
		||||
static size_t xFreeBytesRemaining = configTOTAL_HEAP_SIZE;
 | 
			
		||||
static size_t xFreeBytesRemaining;
 | 
			
		||||
 | 
			
		||||
/* STATIC FUNCTIONS ARE DEFINED AS MACROS TO MINIMIZE THE FUNCTION CALL DEPTH. */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -143,6 +143,8 @@ xBlockLink *pxFirstFreeBlock;														\
 | 
			
		|||
	pxFirstFreeBlock = ( void * ) xHeap.ucHeap;										\
 | 
			
		||||
	pxFirstFreeBlock->xBlockSize = configTOTAL_HEAP_SIZE;							\
 | 
			
		||||
	pxFirstFreeBlock->pxNextFreeBlock = &xEnd;										\
 | 
			
		||||
																					\
 | 
			
		||||
	xFreeBytesRemaining = configTOTAL_HEAP_SIZE;									\
 | 
			
		||||
}
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -267,3 +269,7 @@ size_t xPortGetFreeHeapSize( void )
 | 
			
		|||
}
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
void vPortInitialiseBlocks( void )
 | 
			
		||||
{
 | 
			
		||||
	/* This just exists to keep the linker quiet. */
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue