mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 00:51:42 +01:00 
			
		
		
		
	heap: Refactor heap regions/capabilities out of FreeRTOS
Remove tagged heap API, rename caps_xxx to heap_caps_xxx Also includes additional heap_caps_xxx inspection functions.
This commit is contained in:
		
				
					committed by
					
						
						Angus Gratton
					
				
			
			
				
	
			
			
			
						parent
						
							5ee49fd311
						
					
				
				
					commit
					71c70cb15c
				
			@@ -136,29 +136,12 @@ extern "C" {
 | 
			
		||||
	StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters ) PRIVILEGED_FUNCTION;
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/* Used by heap_5.c. */
 | 
			
		||||
typedef struct HeapRegion
 | 
			
		||||
{
 | 
			
		||||
	uint8_t *pucStartAddress;
 | 
			
		||||
	size_t xSizeInBytes;
 | 
			
		||||
} HeapRegion_t;
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Used to define multiple heap regions for use by heap_5.c.  This function
 | 
			
		||||
 * must be called before any calls to pvPortMalloc() - not creating a task,
 | 
			
		||||
 * queue, semaphore, mutex, software timer, event group, etc. will result in
 | 
			
		||||
 * pvPortMalloc being called.
 | 
			
		||||
 *
 | 
			
		||||
 * pxHeapRegions passes in an array of HeapRegion_t structures - each of which
 | 
			
		||||
 * defines a region of memory that can be used as the heap.  The array is
 | 
			
		||||
 * terminated by a HeapRegions_t structure that has a size of 0.  The region
 | 
			
		||||
 * with the lowest start address must appear first in the array.
 | 
			
		||||
 */
 | 
			
		||||
void vPortDefineHeapRegions( const HeapRegion_t * const pxHeapRegions );
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Map to the memory management routines required for the port.
 | 
			
		||||
 *
 | 
			
		||||
 * Note that libc standard malloc/free are also available for
 | 
			
		||||
 * non-FreeRTOS-specific code, and behave the same as
 | 
			
		||||
 * pvPortMalloc()/vPortFree().
 | 
			
		||||
 */
 | 
			
		||||
void *pvPortMalloc( size_t xSize ) PRIVILEGED_FUNCTION;
 | 
			
		||||
void vPortFree( void *pv ) PRIVILEGED_FUNCTION;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user