From f7a22fe783ddda6d85d11f113ba83703c4dde1f8 Mon Sep 17 00:00:00 2001 From: Jakub Date: Sun, 1 Sep 2019 22:09:14 +0200 Subject: [PATCH] Move simulink heap to FreeRTOS heap Compiler command to redefine simulink malloc and free to FreeRTOS functions. Whole conversion of heap is unfinished. Simulink malloc is used in files matlab/rtw/c/src/ext_mode/common/updown.c matlab/rtw/c/src/ext_mode/common/mem_mng.c --- rpp/rpp/rpp.tmf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpp/rpp/rpp.tmf b/rpp/rpp/rpp.tmf index 6462899..b42c365 100644 --- a/rpp/rpp/rpp.tmf +++ b/rpp/rpp/rpp.tmf @@ -181,6 +181,11 @@ CFLAGS += $(CDEBUG) CXXFLAGS += $(CXXDEBUG) LDFLAGS += $(LDDEBUG) endif + +# Redefintion simulink malloc and free to FreeRTOS functions +# Unfished (compiler command is complete) +# CFLAGS += -D"malloc(size)=pvPortMalloc(size)" +# CFLAGS += -D"free(ptr)=vPortFree(ptr)" #-------------------------- Target application --------------------------------- # Define the type of build -- 2.39.2