From f239da06ec2d2cbe2629a2be8227c5aa9998644c Mon Sep 17 00:00:00 2001 From: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com> Date: Wed, 13 Nov 2024 13:31:41 +0530 Subject: [PATCH] Add xPortResetHeapMinimumEverFreeHeapSize to heap5 (#1191) The same was added to heap 4 in this PR - https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/1189. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> --- portable/MemMang/heap_5.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/portable/MemMang/heap_5.c b/portable/MemMang/heap_5.c index 0d9598cf1b3..4e872f6158b 100644 --- a/portable/MemMang/heap_5.c +++ b/portable/MemMang/heap_5.c @@ -457,6 +457,12 @@ size_t xPortGetMinimumEverFreeHeapSize( void ) } /*-----------------------------------------------------------*/ +void xPortResetHeapMinimumEverFreeHeapSize( void ) +{ + xMinimumEverFreeBytesRemaining = xFreeBytesRemaining; +} +/*-----------------------------------------------------------*/ + void * pvPortCalloc( size_t xNum, size_t xSize ) {