use red led function for BV

This commit is contained in:
King Kévin 2018-02-13 17:32:20 +01:00
parent 5dc9ad0286
commit aa64816fc6
1 changed files with 3 additions and 2 deletions

View File

@ -80,9 +80,10 @@ 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
led_red(); // switch red LED to indicate bootloader started
#else
led_on(); // indicate bootloader started
#endif
usb_dfu_setup(); // setup USB DFU for firmware upload
usb_dfu_start(); // run DFU mode