We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b35c7d commit 8924042Copy full SHA for 8924042
examples/stm32/f4/stm32f4-discovery/timer/timer.c
@@ -61,10 +61,10 @@ static void clock_setup(void)
61
62
static void gpio_setup(void)
63
{
64
- /* Enable GPIOC clock. */
+ /* Enable GPIO clock for leds. */
65
rcc_periph_clock_enable(RCC_GPIOD);
66
67
- /* Set GPIO12 (in GPIO port C) to 'output push-pull'. */
+ /* Set GPIO12 (in GPIO port D) to 'output push-pull'. */
68
gpio_mode_setup(GPIOD, GPIO_MODE_OUTPUT,
69
GPIO_PUPD_NONE, GPIO12 | GPIO13);
70
0 commit comments