pico-stuff/lib/littlefs/lfs_rp2040.h

27 wiersze
674 B
C
Czysty Zwykły widok Historia

2023-01-28 23:04:43 +00:00
#ifndef LFS_RP2040_H
#define LFS_RP2040_H
2023-01-29 03:11:59 +00:00
#include <stdio.h>
#include <stdlib.h>
2023-01-28 23:04:43 +00:00
#include <lfs.h>
#include <lfs_util.h>
2023-01-29 03:11:59 +00:00
#include "hardware/flash.h"
#include "hardware/sync.h"
#include "pico/stdio.h"
#include "pico/stdlib.h"
const struct lfs_config lfs_rp2040_init();
2023-01-28 23:04:43 +00:00
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