stm32f4: timer: correct misleading comments.

Code was correct, comment was badly imported.
This commit is contained in:
Karl Palsson
2016-05-03 21:14:09 +00:00
parent 5b35c7d7a1
commit 8924042d2a

View File

@@ -61,10 +61,10 @@ static void clock_setup(void)
static void gpio_setup(void) static void gpio_setup(void)
{ {
/* Enable GPIOC clock. */ /* Enable GPIO clock for leds. */
rcc_periph_clock_enable(RCC_GPIOD); rcc_periph_clock_enable(RCC_GPIOD);
/* Set GPIO12 (in GPIO port C) to 'output push-pull'. */ /* Set GPIO12 (in GPIO port D) to 'output push-pull'. */
gpio_mode_setup(GPIOD, GPIO_MODE_OUTPUT, gpio_mode_setup(GPIOD, GPIO_MODE_OUTPUT,
GPIO_PUPD_NONE, GPIO12 | GPIO13); GPIO_PUPD_NONE, GPIO12 | GPIO13);