aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/storage.h
diff options
context:
space:
mode:
authorDamien George2019-11-06 13:48:35 +1100
committerDamien George2019-11-25 18:10:58 +1100
commit7723dac3371ccf081c2490b33b69492dc42818bd (patch)
treec09dc284ad02414235fb86a750f87d33e27758a4 /ports/stm32/storage.h
parent0527baf7fa2056e62ca605dedc739a6275307923 (diff)
stm32: Generalise flash mounting code so it supports arbitrary FS.
This commit refactors and generalises the boot-mount routine on stm32 so that it can mount filesystems of arbitrary type. That is, it no longer assumes that the filesystem is FAT. It does this by using mp_vfs_mount() which does auto-detection of the filesystem type.
Diffstat (limited to 'ports/stm32/storage.h')
-rw-r--r--ports/stm32/storage.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/stm32/storage.h b/ports/stm32/storage.h
index 826b465a6..0ba3497a1 100644
--- a/ports/stm32/storage.h
+++ b/ports/stm32/storage.h
@@ -63,6 +63,7 @@ int spi_bdev_readblocks(spi_bdev_t *bdev, uint8_t *dest, uint32_t block_num, uin
int spi_bdev_writeblocks(spi_bdev_t *bdev, const uint8_t *src, uint32_t block_num, uint32_t num_blocks);
extern const struct _mp_obj_type_t pyb_flash_type;
+extern const struct _mp_obj_base_t pyb_flash_obj;
struct _fs_user_mount_t;
void pyb_flash_init_vfs(struct _fs_user_mount_t *vfs);