change volume to nrf52boot
This commit is contained in:
parent
84cbaf81a9
commit
ebd79fc00d
@ -235,13 +235,14 @@ void msc_flash_init(void)
|
|||||||
{
|
{
|
||||||
pstorage_module_param_t fat_psp = { .cb = fat_pstorage_cb};
|
pstorage_module_param_t fat_psp = { .cb = fat_pstorage_cb};
|
||||||
pstorage_register(&fat_psp, &_fat_psh);
|
pstorage_register(&fat_psp, &_fat_psh);
|
||||||
|
|
||||||
fat12_mkfs();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void msc_flash_mount(void)
|
void msc_flash_mount(void)
|
||||||
{
|
{
|
||||||
_wr10_state = WRITE10_IDLE;
|
_wr10_state = WRITE10_IDLE;
|
||||||
|
|
||||||
|
// reset every time it is plugged
|
||||||
|
fat12_mkfs();
|
||||||
}
|
}
|
||||||
|
|
||||||
void msc_flash_umount(void)
|
void msc_flash_umount(void)
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
VERIFY_STATIC( MSC_FLASH_ADDR_START+MSC_FLASH_SIZE == BOOTLOADER_REGION_START-DFU_APP_DATA_RESERVED, );
|
VERIFY_STATIC( MSC_FLASH_ADDR_START+MSC_FLASH_SIZE == BOOTLOADER_REGION_START-DFU_APP_DATA_RESERVED, );
|
||||||
|
|
||||||
// must be 11 bytes padded with space
|
// 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
|
/* Note ATTR_WEAK is used when CFG_TUD_MSC = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user