Open rahmanih opened 8 months ago
Hi @rahmanih, it is currently possible to override lfs_malloc/lfs_free by providing your own lfs_utils.h:
Though I've come to realize this is unnecessarily cumbersome for many util overrides, and having simple ifdefs as you mentioned would be better. It's something on my TODO list. There is some other config-related work I was batching it up with which is why I haven't gotten to it yet.
Improving things over here: https://github.com/littlefs-project/littlefs/pull/909
Let me know if anything looks wrong.
Hi,
lfs_malloc()
andlfs_free()
are currently provided as functions using the systemmalloc
&free
this prevents the LittleFS from using RTOS memory allocation like the FreeRTOSpvPortMalloc()
&pvPortFree()
it is possible to consider using macros instead of exampleregards Haithem.