Browse Source

gadget0: f4: PA9 is not an AF.

It has never been an AF, it's always been an error to set this pin to
AF.
pull/1077/head
Karl Palsson 5 years ago
parent
commit
1519b435ca
  1. 5
      tests/gadget-zero/main-stm32f4disco.c

5
tests/gadget-zero/main-stm32f4disco.c

@ -39,9 +39,8 @@ int main(void)
rcc_periph_clock_enable(RCC_GPIOA);
rcc_periph_clock_enable(RCC_OTGFS);
gpio_mode_setup(GPIOA, GPIO_MODE_AF, GPIO_PUPD_NONE,
GPIO9 | GPIO11 | GPIO12);
gpio_set_af(GPIOA, GPIO_AF10, GPIO9 | GPIO11 | GPIO12);
gpio_mode_setup(GPIOA, GPIO_MODE_AF, GPIO_PUPD_NONE, GPIO11 | GPIO12);
gpio_set_af(GPIOA, GPIO_AF10, GPIO11 | GPIO12);
/* LEDS on discovery board */
rcc_periph_clock_enable(RCC_GPIOD);

Loading…
Cancel
Save