mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 09:01:40 +01:00 
			
		
		
		
	As the tlsf implementation is a fork from https://github.com/mattconte/tlsf, the sources are moved to a separate repository and used as a submodule in the esp-idf instead. In this commit: - Removing TLSF related files and using tlsf submodule instead. - Adding components/heap/tlsf_platform.h header gathering all IDF specifics. - The multi_heap_poisoning.c provides the declaration of the function block_absorb_post_hook() definied weak in the TLSF repository. - The tlsf_platform.h includes the tlsf_common.h file after the definition of FL_INDEX_MAX_PLATFORM macro to make sure that this macro will be available in tlsf_common.h without having to include tlaf_platform.h from IDF in the tlsf_common.h header from the TLSF repository. - Add missing include from tlsf_block_functions.h in the multi_heap.c file. Change related to the changes made in TLSF repository (tlsf_block_functions.h no longer included in tlsf.h)
		
			
				
	
	
		
			24 lines
		
	
	
		
			462 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			462 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier: Apache-2.0
 | 
						|
 */
 | 
						|
#pragma once
 | 
						|
 | 
						|
#ifdef ESP_PLATFORM
 | 
						|
#include "sdkconfig.h"
 | 
						|
#include "soc/soc.h"
 | 
						|
#include "soc/soc_caps.h"
 | 
						|
#endif
 | 
						|
 | 
						|
/* Configuration macros for multi-heap */
 | 
						|
 | 
						|
#ifdef CONFIG_HEAP_POISONING_LIGHT
 | 
						|
#define MULTI_HEAP_POISONING
 | 
						|
#endif
 | 
						|
 | 
						|
#ifdef CONFIG_HEAP_POISONING_COMPREHENSIVE
 | 
						|
#define MULTI_HEAP_POISONING
 | 
						|
#define MULTI_HEAP_POISONING_SLOW
 | 
						|
#endif
 |