update uf2 product name

This commit is contained in:
hathach
2019-04-24 16:46:25 +07:00
parent 137785f2f0
commit 6bbcab7f50
12 changed files with 14 additions and 14 deletions

View File

@ -62,7 +62,7 @@ struct TextFile {
const char infoUf2File[] = //
"UF2 Bootloader " UF2_VERSION "\r\n"
"Model: " PRODUCT_NAME "\r\n"
"Model: " UF2_PRODUCT_NAME "\r\n"
"Board-ID: " UF2_BOARD_ID "\r\n"
"Date: " __DATE__ "\r\n";

View File

@ -1,15 +1,9 @@
#include "boards.h"
#ifndef PRODUCT_NAME
#define PRODUCT_NAME DIS_MODEL
#endif
#define BOOTLOADER_ID MK_DIS_FIRMWARE
#define UF2_NUM_BLOCKS 8000 // at least 4,1 MB for FAT16
#ifndef UF2_VOLUME_LABEL
#define UF2_VOLUME_LABEL "NRF52BOOT "
#define UF2_VOLUME_LABEL "NRF52BOOT "
#endif
#define FLASH_SIZE (USER_FLASH_END-USER_FLASH_START) // Max flash size