diff --git a/application.c b/application.c index 4fe0901..285e9ec 100644 --- a/application.c +++ b/application.c @@ -545,7 +545,13 @@ void main(void) // setup USB connectors gpio_primary_remap(AFIO_MAPR_SWJ_CFG_JTAG_OFF_SW_ON, 0); // only use SWD and reuse JTAG pins - rcc_periph_clock_enable(RCC_GPIOA | RCC_GPIOB | RCC_GPIOC | RCC_GPIOD | RCC_GPIOE | RCC_GPIOF | RCC_GPIOG); // enable clock to all GPIO port domain since we use them all + rcc_periph_clock_enable(RCC_GPIOA); // enable clock to all GPIO port domains since we use them all + rcc_periph_clock_enable(RCC_GPIOB); // enable clock to all GPIO port domains since we use them all + rcc_periph_clock_enable(RCC_GPIOC); // enable clock to all GPIO port domains since we use them all + rcc_periph_clock_enable(RCC_GPIOD); // enable clock to all GPIO port domains since we use them all + rcc_periph_clock_enable(RCC_GPIOE); // enable clock to all GPIO port domains since we use them all + rcc_periph_clock_enable(RCC_GPIOF); // enable clock to all GPIO port domains since we use them all + rcc_periph_clock_enable(RCC_GPIOG); // enable clock to all GPIO port domains since we use them all usb_pins_float(); // pull all pins to floating // setup terminal