application: fix, peripheral clocks must be enable individually
This commit is contained in:
parent
3e37211c90
commit
57de92d362
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue