change volume to nrf52boot

This commit is contained in:
hathach 2018-06-20 16:34:05 +07:00
parent 84cbaf81a9
commit ebd79fc00d
2 changed files with 4 additions and 3 deletions

View File

@ -235,13 +235,14 @@ void msc_flash_init(void)
{
pstorage_module_param_t fat_psp = { .cb = fat_pstorage_cb};
pstorage_register(&fat_psp, &_fat_psh);
fat12_mkfs();
}
void msc_flash_mount(void)
{
_wr10_state = WRITE10_IDLE;
// reset every time it is plugged
fat12_mkfs();
}
void msc_flash_umount(void)

View File

@ -57,7 +57,7 @@
VERIFY_STATIC( MSC_FLASH_ADDR_START+MSC_FLASH_SIZE == BOOTLOADER_REGION_START-DFU_APP_DATA_RESERVED, );
// must be 11 bytes padded with space
#define MSC_FLASH_VOL_LABEL "FEATHER5284"
#define MSC_FLASH_VOL_LABEL "NRF52BOOT "
/*------------------------------------------------------------------*/
/* Note ATTR_WEAK is used when CFG_TUD_MSC = 0