提交 3d5d76fb 编写于 作者: D Damien George

stm32/main: Allow a board to configure the label of the flash FS.

To change the default label a board should define:

    #define MICROPY_HW_FLASH_FS_LABEL "label"
上级 cf9fc734
......@@ -192,7 +192,7 @@ MP_NOINLINE STATIC bool init_flash_fs(uint reset_mode) {
}
// set label
f_setlabel(&vfs_fat->fatfs, "pybflash");
f_setlabel(&vfs_fat->fatfs, MICROPY_HW_FLASH_FS_LABEL);
// create empty main.py
FIL fp;
......
......@@ -92,6 +92,11 @@
#define MICROPY_HW_HAS_LCD (0)
#endif
// The volume label used when creating the flash filesystem
#ifndef MICROPY_HW_FLASH_FS_LABEL
#define MICROPY_HW_FLASH_FS_LABEL "pybflash"
#endif
/*****************************************************************************/
// General configuration
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册