fix build with 832

This commit is contained in:
hathach 2022-07-13 12:11:01 +07:00
parent c9a548f0c8
commit 90c856e9bf
No known key found for this signature in database
GPG key ID: F5D50C6D51D17CBA
2 changed files with 5 additions and 6 deletions

View file

@ -61,15 +61,14 @@
#include "nrf_error.h"
#include "boards.h"
#include "uf2/uf2.h"
#include "pstorage_platform.h"
#include "nrf_mbr.h"
#include "pstorage.h"
#include "nrfx_nvmc.h"
#ifdef NRF_USBD
#include "uf2/uf2.h"
#include "nrf_usbd.h"
#include "tusb.h"

View file

@ -13,12 +13,12 @@
#endif
// Family ID and size for updating generic Application
#if defined(NRF52833_XXAA)
#define CFG_UF2_FAMILY_APP_ID 0x621E937A
#define CFG_UF2_FLASH_SIZE (512*1024) // 512 kB
#elif defined(NRF52840_XXAA)
#if defined(NRF52840_XXAA)
#define CFG_UF2_FAMILY_APP_ID 0xADA52840
#define CFG_UF2_FLASH_SIZE (1024*1024) // 1 MB
#elif defined(NRF52833_XXAA)
#define CFG_UF2_FAMILY_APP_ID 0x621E937A
#define CFG_UF2_FLASH_SIZE (512*1024) // 512 kB
#endif
// Application Address Space