update uf2 index url, add UF2_ prefix for volume lable and index url

This commit is contained in:
hathach
2019-04-24 16:31:08 +07:00
parent 4ec938230d
commit 137785f2f0
13 changed files with 47 additions and 53 deletions

View File

@ -71,7 +71,7 @@ const char indexFile[] = //
"<html>"
"<body>"
"<script>\n"
"location.replace(\"" INDEX_URL "\");\n"
"location.replace(\"" UF2_INDEX_URL "\");\n"
"</script>"
"</body>"
"</html>\n";
@ -131,7 +131,7 @@ static FAT_BootBlock const BootBlock = {
.PhysicalDriveNum = 0x80, // to match MediaDescriptor of 0xF8
.ExtendedBootSig = 0x29,
.VolumeSerialNumber = 0x00420042,
.VolumeLabel = VOLUME_LABEL,
.VolumeLabel = UF2_VOLUME_LABEL,
.FilesystemIdentifier = "FAT16 ",
};

View File

@ -4,16 +4,12 @@
#define PRODUCT_NAME DIS_MODEL
#endif
#ifndef INDEX_URL
#define INDEX_URL "https://www.adafruit.com/"
#endif
#define BOOTLOADER_ID MK_DIS_FIRMWARE
#define UF2_NUM_BLOCKS 8000 // at least 4,1 MB for FAT16
#ifndef VOLUME_LABEL
#define VOLUME_LABEL "NRF52BOOT "
#ifndef UF2_VOLUME_LABEL
#define UF2_VOLUME_LABEL "NRF52BOOT "
#endif
#define FLASH_SIZE (USER_FLASH_END-USER_FLASH_START) // Max flash size