Description
I just now started to implement littleFS on an Adafruit Feather BLE using a Nordic nRF52 chip. In the example I see a config filled out like this:
const struct lfs_config cfg = {
.read = user_provided_block_device_read,
.prog = user_provided_block_device_prog,
.erase = user_provided_block_device_erase,
.sync = user_provided_block_device_sync,
…. and so forth.
Unfortunately I can't seem to find any reference as to what function calls to substitute the user_provided_block_device_<>'s. I tried with the functions like lfs_file_read etc. from the lfs.c but it does not work, gives me an error: "sorry, unimplemented: non-trivial designated initializers not supported"
I'm using Arduino IDE. Is there a better example explaining how to configure lfs?