InfiniSim/sim
Jean-François Milants 8ae5ba7c0a Integrate the new heap implementation from InfiniTime (https://github.com/InfiniTimeOrg/InfiniTime/pull/1709).
Since FreeRTOS.h, portmacro_cmsis.h and task.h are now built in C (by lv_mem.c), I had to change some includes and declarations to make them compatible with a C compiler.

Integrating the new memory management from InfiniTime in InfiniSim is not easy because InfiniSim does not include the whole FreeRTOS. Which means that, for example, pvPortMalloc() and vPortFree() are not accessible from InfiniSim.
As a first step, I provided custom implementations for pvPortMalloc(), vPortFree() which are based on ... malloc(). These function keep track of the memory that is currently allocated so that xPortGetFreeHeapSize(), xPortGetMinimumEverFreeHeapSize() return something.

Not that this implementation do not keep track of all the memory allocations done in InfiniTime. It can only "see" those done via pvPortMalloc(). It means that the available memory displayed by InfiniSim will probably be very optimistic.
2023-05-03 22:39:40 +02:00
..
components motioncontroller: Fix changes in InfiniTime#1659 2023-03-10 10:18:16 +01:00
displayapp Handle MONITOR_ZOOM for screen transitions and captures 2023-05-03 22:36:25 +02:00
drivers use drivers/Hrs3300.h from InfiniTime 2023-05-03 21:16:30 +02:00
heartratetask Initial InfiniSim project 2022-02-17 22:57:08 +01:00
libraries Remove unused app_timer library 2023-02-25 19:49:58 +02:00
nrfx Use InfiniTime Watchdog.h by providing mdk/nrf.h and others 2023-05-03 20:59:58 +02:00
FreeRTOS.cpp Integrate the new heap implementation from InfiniTime (https://github.com/InfiniTimeOrg/InfiniTime/pull/1709). 2023-05-03 22:39:40 +02:00
FreeRTOS.h Integrate the new heap implementation from InfiniTime (https://github.com/InfiniTimeOrg/InfiniTime/pull/1709). 2023-05-03 22:39:40 +02:00
portmacro_cmsis.cpp Initial InfiniSim project 2022-02-17 22:57:08 +01:00
portmacro_cmsis.h Integrate the new heap implementation from InfiniTime (https://github.com/InfiniTimeOrg/InfiniTime/pull/1709). 2023-05-03 22:39:40 +02:00
queue.cpp Initial InfiniSim project 2022-02-17 22:57:08 +01:00
queue.h Initial InfiniSim project 2022-02-17 22:57:08 +01:00
task.cpp Initial InfiniSim project 2022-02-17 22:57:08 +01:00
task.h Integrate the new heap implementation from InfiniTime (https://github.com/InfiniTimeOrg/InfiniTime/pull/1709). 2023-05-03 22:39:40 +02:00
timers.cpp timers: Fix restarting timer from a timer 2023-02-27 19:03:18 +01:00
timers.h sim/timers: implement xTimerGetExpiryTime, xTimerIsActive, more accurate 2022-03-29 22:41:09 +02:00