This commit is contained in:
hathach
2020-05-12 20:43:12 +07:00
parent 7929dc3dae
commit e6de13f679
2 changed files with 3 additions and 13 deletions
@@ -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 */
};
-4
View File
@@ -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; }
//--------------------------------------------------------------------+
//
//--------------------------------------------------------------------+