Use vPortMalloc() in HAL Libraries?
This is an STM32CubeMX project with the FREERTOS option enabled.
In the code I add to the project I use vPortMalloc() for dynamic allocation and vPortFree() for deallcation. I am wondering if the HAL libraries should also be using these instead of malloc() and free(). I would make the HAL libraries use vPortMalloc() and vPortFree() with these macros:
#define malloc(size) pvPortMalloc(size) #define free(ptr) vPortFree(ptr)