clean up
This commit is contained in:
		| @@ -44,6 +44,7 @@ | |||||||
|  |  | ||||||
| // for checking flash size | // for checking flash size | ||||||
| #include "dfu_types.h" | #include "dfu_types.h" | ||||||
|  | #include "uf2/uf2.h" | ||||||
|  |  | ||||||
| /*------------------------------------------------------------------*/ | /*------------------------------------------------------------------*/ | ||||||
| /* FLASH Configuration | /* FLASH Configuration | ||||||
| @@ -51,14 +52,14 @@ | |||||||
| #define MSC_FLASH_ADDR_START    0xAD000 | #define MSC_FLASH_ADDR_START    0xAD000 | ||||||
| #define MSC_FLASH_SIZE          (256*1024) | #define MSC_FLASH_SIZE          (256*1024) | ||||||
|  |  | ||||||
| #define MSC_FLASH_BLOCK_SIZE      512 | #define MSC_UF2_BLOCK_SIZE      512 | ||||||
| #define MSC_FLASH_BLOCK_NUM       (MSC_FLASH_SIZE/MSC_FLASH_BLOCK_SIZE) | #define MSC_UF2_BLOCK_NUM       UF2_NUM_BLOCKS | ||||||
|  |  | ||||||
| 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       "NRF52BOOT  " | #define MSC_FLASH_VOL_LABEL       "NRF52BOOT  " | ||||||
|  |  | ||||||
|  | VERIFY_STATIC( MSC_FLASH_ADDR_START+MSC_FLASH_SIZE == BOOTLOADER_REGION_START-DFU_APP_DATA_RESERVED, ); | ||||||
|  |  | ||||||
| /*------------------------------------------------------------------*/ | /*------------------------------------------------------------------*/ | ||||||
| /* Note ATTR_WEAK is used when CFG_TUD_MSC = 0 | /* Note ATTR_WEAK is used when CFG_TUD_MSC = 0 | ||||||
|  *------------------------------------------------------------------*/ |  *------------------------------------------------------------------*/ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user