AP_Bootloader: for fast boot don't init USB

This commit is contained in:
Andrew Tridgell 2018-06-27 20:59:07 +10:00
parent b6e057dfb9
commit 28ad2287c8

View File

@ -42,8 +42,6 @@ struct boardinfo board_info;
int main(void)
{
init_uarts();
board_info.board_type = APJ_BOARD_ID;
board_info.board_rev = 0;
board_info.fw_size = (BOARD_FLASH_SIZE - FLASH_BOOTLOADER_LOAD_KB)*1024;
@ -51,8 +49,6 @@ int main(void)
board_info.fw_size = (1024 - FLASH_BOOTLOADER_LOAD_KB)*1024;
}
flash_init();
bool try_boot = false;
uint32_t timeout = HAL_BOOTLOADER_TIMEOUT;
@ -71,6 +67,9 @@ int main(void)
if (try_boot) {
jump_to_app();
}
init_uarts();
flash_init();
while (true) {
bootloader(timeout);