You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lfs_malloc() and lfs_free() are currently provided as functions using the system malloc & free
this prevents the LittleFS from using RTOS memory allocation like the FreeRTOSpvPortMalloc() & pvPortFree()
it is possible to consider using macros instead of example
// Users can override lfs_util.h with their own configuration by defining
// LFS_CONFIG as a header file to include (-DLFS_CONFIG=lfs_config.h).
//
// If LFS_CONFIG is used, none of the default utils will be emitted and must be
// provided by the config file. To start, I would suggest copying lfs_util.h
// and modifying as needed.
#ifdefLFS_CONFIG
#defineLFS_STRINGIZE(x) LFS_STRINGIZE2(x)
#defineLFS_STRINGIZE2(x) #x
#includeLFS_STRINGIZE(LFS_CONFIG)
#else
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.
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 FreeRTOS
pvPortMalloc()
&pvPortFree()
it is possible to consider using macros instead of example
regards
Haithem.
The text was updated successfully, but these errors were encountered: