#ifndef LFS_RP2040_H #define LFS_RP2040_H #include #include #include #include #include "hardware/flash.h" #include "hardware/sync.h" #include "pico/stdio.h" #include "pico/stdlib.h" void lfs_rp2040_init(struct lfs_config* cfg); int lfs_rp2040_read(const struct lfs_config *c, lfs_block_t block, lfs_off_t off, void *buffer, lfs_size_t size); int lfs_rp2040_prog(const struct lfs_config *c, lfs_block_t block, lfs_off_t off, const void *buffer, lfs_size_t size); int lfs_rp2040_erase(const struct lfs_config *c, lfs_block_t block); int lfs_rp2040_sync(const struct lfs_config *c); #endif