I have a Forth system I have written in C that is as portable as I can make it, meaning that it can run under Windows, Linux and on development boards, including the Teensy 4.
My next step is to try to create a C wrapper for the 4 simple functions that provide most basic file access functionality using LittleFS:
handle = fopen(filename, mode)
close(handle)
count = fread(addr,sz,num,handle)
count = fwrite(addr,sz,num,handle)
That is all is needed, just those 4 functions. The thing is, this needs to be in C, not C++ to fit in with the rest of the system.
I know that the functionality is all there in the LittleFS library.
Might there already a C wrapper I can use?
Or ... how would I go about creating a C wrapper for LittleFS?
My next step is to try to create a C wrapper for the 4 simple functions that provide most basic file access functionality using LittleFS:
handle = fopen(filename, mode)
close(handle)
count = fread(addr,sz,num,handle)
count = fwrite(addr,sz,num,handle)
That is all is needed, just those 4 functions. The thing is, this needs to be in C, not C++ to fit in with the rest of the system.
I know that the functionality is all there in the LittleFS library.
Might there already a C wrapper I can use?
Or ... how would I go about creating a C wrapper for LittleFS?