Skip to content

Commit

Permalink
FIX usb_transparent STM32F4 GPIOA clock not enabled (paparazzi#2461)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvand authored and podhrmic committed Oct 4, 2019
1 parent b3ad7fe commit 6380531
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sw/airborne/arch/stm32/usb_ser_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ void VCOM_init(void)

/* set up GPIO pins */
#if defined STM32F4
rcc_periph_clock_enable(RCC_GPIOA);
gpio_mode_setup(GPIOA, GPIO_MODE_AF, GPIO_PUPD_NONE,
GPIO11 | GPIO12);
gpio_set_af(GPIOA, GPIO_AF10, GPIO11 | GPIO12);
Expand Down

0 comments on commit 6380531

Please sign in to comment.