From ebd7b8a60f68d51fab02a9931d17056b69f52f80 Mon Sep 17 00:00:00 2001 From: Henrik Stickann <4376396-Mithradir@users.noreply.gitlab.com> Date: Fri, 20 Jan 2023 00:21:39 +0100 Subject: [PATCH] Add config integration --- src/heap_useNewlib_ST.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/heap_useNewlib_ST.c b/src/heap_useNewlib_ST.c index 1fb3987..b56419c 100644 --- a/src/heap_useNewlib_ST.c +++ b/src/heap_useNewlib_ST.c @@ -57,6 +57,16 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/** + * \author Henrik Stickann + * \data 20-January-2023 + * + * Changes: + * * Add macro to only use implementation when requested by user + */ +#include +#ifdef STA_RTOS_MALLOC_ENABLE + // ================================================================================================ // ======================================= Configuration ======================================== // These configuration symbols could be provided by from build... @@ -285,3 +295,6 @@ size_t xPortGetFreeHeapSize( void ) PRIVILEGED_FUNCTION { //! No implementation needed, but stub provided in case application already calls vPortInitialiseBlocks void vPortInitialiseBlocks( void ) PRIVILEGED_FUNCTION {}; + + +#endif // STA_RTOS_MALLOC_ENABLE