|
|
|
@ -34,6 +34,7 @@ size_t flash_get_capacity(struct flash_dev *dev); |
|
|
|
|
size_t flash_read(struct flash_dev *dev, uint32_t addr, void *data, size_t len); |
|
|
|
|
size_t flash_write(struct flash_dev *dev, uint32_t addr, const void *data, |
|
|
|
|
size_t len); |
|
|
|
|
size_t flash_write0(struct flash_dev *dev, uint32_t addr, size_t len); |
|
|
|
|
size_t flash_copy(struct flash_dev *dev, uint32_t dst, uint32_t src, size_t len); |
|
|
|
|
int flash_is_erased(struct flash_dev *dev, uint32_t addr, size_t len); |
|
|
|
|
int flash_erase(struct flash_dev *dev, uint32_t addr, size_t len); |
|
|
|
|