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:
parent
cf9fc7346d
commit
3d5d76fb73
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue