bootloader: show red LED on BV

This commit is contained in:
King Kévin 2018-02-12 19:41:20 +01:00
parent 993e0735c3
commit afd0f5545d
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,9 @@ void main(void)
rcc_clock_setup_in_hse_8mhz_out_72mhz(); // start main clock
board_setup(); // setup board to control LED
led_on(); // indicate bootloader started
#if defined(BUSVOODOO)
led_toggle(); // switch to red LED
#endif
usb_dfu_setup(); // setup USB DFU for firmware upload
usb_dfu_start(); // run DFU mode
}