summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/storage.h
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/storage.h')
-rw-r--r--stmhal/storage.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/stmhal/storage.h b/stmhal/storage.h
index 4ff7abbe1c..30aa483095 100644
--- a/stmhal/storage.h
+++ b/stmhal/storage.h
@@ -36,3 +36,9 @@ void storage_irq_handler(void);
void storage_flush(void);
bool storage_read_block(uint8_t *dest, uint32_t block);
bool storage_write_block(const uint8_t *src, uint32_t block);
+
+// these return 0 on success, non-zero on error
+mp_uint_t storage_read_blocks(uint8_t *dest, uint32_t block_num, uint32_t num_blocks);
+mp_uint_t storage_write_blocks(const uint8_t *src, uint32_t block_num, uint32_t num_blocks);
+
+extern const struct _mp_obj_type_t pyb_flash_type;