Skip to content

Commit 8924042

Browse files
committed
stm32f4: timer: correct misleading comments.
Code was correct, comment was badly imported.
1 parent 5b35c7d commit 8924042

File tree

1 file changed

+2
-2
lines changed
  • examples/stm32/f4/stm32f4-discovery/timer

1 file changed

+2
-2
lines changed

examples/stm32/f4/stm32f4-discovery/timer/timer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ static void clock_setup(void)
6161

6262
static void gpio_setup(void)
6363
{
64-
/* Enable GPIOC clock. */
64+
/* Enable GPIO clock for leds. */
6565
rcc_periph_clock_enable(RCC_GPIOD);
6666

67-
/* Set GPIO12 (in GPIO port C) to 'output push-pull'. */
67+
/* Set GPIO12 (in GPIO port D) to 'output push-pull'. */
6868
gpio_mode_setup(GPIOD, GPIO_MODE_OUTPUT,
6969
GPIO_PUPD_NONE, GPIO12 | GPIO13);
7070

0 commit comments

Comments
 (0)