diff --git a/src/boards/feather_nrf52840_express/pinconfig.c b/src/boards/feather_nrf52840_express/pinconfig.c index 4337212..a983e4a 100644 --- a/src/boards/feather_nrf52840_express/pinconfig.c +++ b/src/boards/feather_nrf52840_express/pinconfig.c @@ -6,20 +6,14 @@ const uint32_t bootloaderConfig[] = { /* CF2 START */ CFG_MAGIC0, CFG_MAGIC1, // magic - 32, 100, // used entries, total entries - -#ifdef LED_NEOPIXEL - 20, LED_NEOPIXEL, // PIN_NEOPIXEL - 200, NEOPIXELS_NUMBER, // NUM_NEOPIXELS -#endif + 5, 100, // used entries, total entries 204, 0x100000, // FLASH_BYTES = 0x100000 205, 0x40000, // RAM_BYTES = 0x40000 - CFG_BOOTLOADER_BOARD_ID, (USB_DESC_VID << 16) | USB_DESC_UF2_PID, + 208, (USB_DESC_VID << 16) | USB_DESC_UF2_PID, // BOOTLOADER_BOARD_ID = USB VID+PID, used for verification when updating bootloader via uf2 209, 0xada52840, // UF2_FAMILY = 0xada52840 210, 0x20, // PINS_PORT_SIZE = PA_32 - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0 /* CF2 END */ }; diff --git a/src/usb/uf2/ghostfat.c b/src/usb/uf2/ghostfat.c index 0127c34..273bc53 100644 --- a/src/usb/uf2/ghostfat.c +++ b/src/usb/uf2/ghostfat.c @@ -174,10 +174,6 @@ static inline bool in_uicr_space(uint32_t addr) return addr == 0x10001000; } -//static inline get_new_bootloader_base(uint32_t ) - -static inline uint32_t max32 (uint32_t x, uint32_t y) { return (x > y) ? x : y; } - //--------------------------------------------------------------------+ // //--------------------------------------------------------------------+