clean up
This commit is contained in:
parent
dbeaafa7b5
commit
cda1798d70
1 changed files with 13 additions and 16 deletions
|
|
@ -1,26 +1,23 @@
|
|||
#include "boards.h"
|
||||
#include "dfu_types.h"
|
||||
|
||||
// Family ID for updating generic Application
|
||||
#if defined(NRF52833_XXAA)
|
||||
#define CFG_UF2_FAMILY_APP_ID 0x621E937A
|
||||
#elif defined(NRF52840_XXAA)
|
||||
#define CFG_UF2_FAMILY_APP_ID 0xADA52840
|
||||
#endif
|
||||
// Virtual disk size: just under 32MB
|
||||
#define CFG_UF2_NUM_BLOCKS 0x10109
|
||||
|
||||
// Family ID for updating Bootloader
|
||||
#define CFG_UF2_FAMILY_BOOT_ID 0xd663823c
|
||||
|
||||
// Board-specific ID for board-specific Application
|
||||
#if defined(USB_DESC_VID) && defined(USB_DESC_UF2_PID) && USB_DESC_VID && USB_DESC_UF2_PID
|
||||
#define CFG_UF2_BOARD_APP_ID ((USB_DESC_VID << 16) | USB_DESC_UF2_PID)
|
||||
#endif
|
||||
|
||||
|
||||
// Family ID for updating Bootloader
|
||||
#define CFG_UF2_FAMILY_BOOT_ID 0xd663823c
|
||||
|
||||
#define CFG_UF2_NUM_BLOCKS 0x10109 // just under 32MB
|
||||
// Family ID and size for updating generic Application
|
||||
#if defined(NRF52833_XXAA)
|
||||
#define CFG_UF2_FLASH_SIZE 0x80000 // 512 kB
|
||||
#else
|
||||
#define CFG_UF2_FAMILY_APP_ID 0x621E937A
|
||||
#define CFG_UF2_FLASH_SIZE (512*1024) // 512 kB
|
||||
#elif defined(NRF52840_XXAA)
|
||||
#define CFG_UF2_FAMILY_APP_ID 0xADA52840
|
||||
#define CFG_UF2_FLASH_SIZE (1024*1024) // 1 MB
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue