feat(esp_rom): patch heap walker to the ROM implementation

modify existing patch of TLSF rom and add multi heap patch
to add the walker feature to the ROM implementation of the
heap component.
This commit is contained in:
Guillaume Souchere
2024-03-19 13:56:32 +01:00
parent 34fb83ffbc
commit 39f789df93
13 changed files with 88 additions and 108 deletions

View File

@@ -460,7 +460,7 @@ typedef struct walker_heap_info {
typedef struct walker_block_info {
void *ptr; ///< Pointer to the block data
size_t size; ///< The size of the block
bool used; ///< Block status. True if free, false if used
bool used; ///< Block status. True: used, False: free
} walker_block_info_t;
/**
@@ -472,7 +472,7 @@ typedef struct walker_block_info {
* @param user_data Opaque pointer to user defined data
*
* @return True to proceed with the heap traversal
* False to stop th traversal of the current heap and continue
* False to stop the traversal of the current heap and continue
* with the traversal of the next heap (if any)
*/
typedef bool (*heap_caps_walker_cb_t)(walker_heap_into_t heap_info, walker_block_info_t block_info, void *user_data);