native/usbdfu: clang-format for part of the DFU bootloader

This commit is contained in:
dragonmux 2022-08-17 11:45:02 +01:00 committed by Piotr Esden-Tempski
parent 54bcbf95fa
commit 999ac27172
1 changed files with 3 additions and 6 deletions

View File

@ -39,7 +39,7 @@ int main(void)
{
/* Check the force bootloader pin*/
rcc_periph_clock_enable(RCC_GPIOB);
if(gpio_get(GPIOB, GPIO12))
if (gpio_get(GPIOB, GPIO12))
dfu_jump_app_if_valid();
dfu_protect(false);
@ -57,15 +57,13 @@ int main(void)
systick_counter_enable();
/* Configure the LED pins. */
gpio_set_mode(LED_PORT, GPIO_MODE_OUTPUT_2_MHZ,
GPIO_CNF_OUTPUT_PUSHPULL, LED_0 | LED_1 | LED_2);
gpio_set_mode(LED_PORT, GPIO_MODE_OUTPUT_2_MHZ, GPIO_CNF_OUTPUT_PUSHPULL, LED_0 | LED_1 | LED_2);
dfu_init(&st_usbfs_v1_usb_driver);
/* Configure the USB pull up pin. */
gpio_set(GPIOA, GPIO8);
gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_2_MHZ,
GPIO_CNF_OUTPUT_PUSHPULL, GPIO8);
gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_2_MHZ, GPIO_CNF_OUTPUT_PUSHPULL, GPIO8);
dfu_main();
}
@ -116,4 +114,3 @@ void sys_tick_handler(void)
}
}
}