Skip to content

Commit e6de13f

Browse files
committed
clean up
1 parent 7929dc3 commit e6de13f

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

src/boards/feather_nrf52840_express/pinconfig.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,14 @@ const uint32_t bootloaderConfig[] =
66
{
77
/* CF2 START */
88
CFG_MAGIC0, CFG_MAGIC1, // magic
9-
32, 100, // used entries, total entries
10-
11-
#ifdef LED_NEOPIXEL
12-
20, LED_NEOPIXEL, // PIN_NEOPIXEL
13-
200, NEOPIXELS_NUMBER, // NUM_NEOPIXELS
14-
#endif
9+
5, 100, // used entries, total entries
1510

1611
204, 0x100000, // FLASH_BYTES = 0x100000
1712
205, 0x40000, // RAM_BYTES = 0x40000
18-
CFG_BOOTLOADER_BOARD_ID, (USB_DESC_VID << 16) | USB_DESC_UF2_PID,
13+
208, (USB_DESC_VID << 16) | USB_DESC_UF2_PID, // BOOTLOADER_BOARD_ID = USB VID+PID, used for verification when updating bootloader via uf2
1914
209, 0xada52840, // UF2_FAMILY = 0xada52840
2015
210, 0x20, // PINS_PORT_SIZE = PA_32
2116

22-
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
23-
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17+
0, 0, 0, 0, 0, 0, 0, 0
2418
/* CF2 END */
2519
};

src/usb/uf2/ghostfat.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,6 @@ static inline bool in_uicr_space(uint32_t addr)
174174
return addr == 0x10001000;
175175
}
176176

177-
//static inline get_new_bootloader_base(uint32_t )
178-
179-
static inline uint32_t max32 (uint32_t x, uint32_t y) { return (x > y) ? x : y; }
180-
181177
//--------------------------------------------------------------------+
182178
//
183179
//--------------------------------------------------------------------+

0 commit comments

Comments
 (0)