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"
This commit is contained in:
Damien George 2018-04-11 16:52:22 +10:00
parent cf9fc7346d
commit 3d5d76fb73
2 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -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