Skip to content

Commit 90c856e

Browse files
committed
fix build with 832
1 parent c9a548f commit 90c856e

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,14 @@
6161
#include "nrf_error.h"
6262

6363
#include "boards.h"
64-
#include "uf2/uf2.h"
6564

6665
#include "pstorage_platform.h"
6766
#include "nrf_mbr.h"
6867
#include "pstorage.h"
6968
#include "nrfx_nvmc.h"
7069

71-
7270
#ifdef NRF_USBD
71+
#include "uf2/uf2.h"
7372
#include "nrf_usbd.h"
7473
#include "tusb.h"
7574

src/usb/uf2/uf2cfg.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
#endif
1414

1515
// Family ID and size for updating generic Application
16-
#if defined(NRF52833_XXAA)
17-
#define CFG_UF2_FAMILY_APP_ID 0x621E937A
18-
#define CFG_UF2_FLASH_SIZE (512*1024) // 512 kB
19-
#elif defined(NRF52840_XXAA)
16+
#if defined(NRF52840_XXAA)
2017
#define CFG_UF2_FAMILY_APP_ID 0xADA52840
2118
#define CFG_UF2_FLASH_SIZE (1024*1024) // 1 MB
19+
#elif defined(NRF52833_XXAA)
20+
#define CFG_UF2_FAMILY_APP_ID 0x621E937A
21+
#define CFG_UF2_FLASH_SIZE (512*1024) // 512 kB
2222
#endif
2323

2424
// Application Address Space

0 commit comments

Comments
 (0)