mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-02 16:11:41 +01:00
heap: Move the declaration of tlsf_poison_fill_pfunc_set() in esp_rom component
- The declaration is moved to esp_rom/include/esp32c2/rom/tlsf.h. - multi_heap_poisoning.h now includes rom/tlsf.h instead of declaring tlsf_poison_fill_pfunc_set(). Note: If more targets will support an implementation of the TLSF in ROM, esp_rom will be extended with new headers in the respective target directories but multi_heap_poisoning.h will remain unchanged.
This commit is contained in:
23
components/esp_rom/include/esp32c2/rom/tlsf.h
Normal file
23
components/esp_rom/include/esp32c2/rom/tlsf.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Set the function to call for filling memory region when
|
||||
* poisoning is configured.
|
||||
*
|
||||
* @param pfunc The callback function to trigger for poisoning
|
||||
* a memory region.
|
||||
*/
|
||||
void tlsf_poison_fill_pfunc_set(void *pfunc);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user