From 6e71b9dea8c5c0ac42a44e4bf76bbd93064fc646 Mon Sep 17 00:00:00 2001 From: Peter Mortensen Date: Mon, 8 Jan 2018 02:34:41 +0100 Subject: [PATCH] stm32f0: miniblink: update comments to match code Brought the comments up to date wrt. the actual code (inconsistency removed). --- examples/stm32/f0/stm32f0-discovery/miniblink/miniblink.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/stm32/f0/stm32f0-discovery/miniblink/miniblink.c b/examples/stm32/f0/stm32f0-discovery/miniblink/miniblink.c index d95da3a..217827f 100644 --- a/examples/stm32/f0/stm32f0-discovery/miniblink/miniblink.c +++ b/examples/stm32/f0/stm32f0-discovery/miniblink/miniblink.c @@ -27,14 +27,14 @@ static void gpio_setup(void) { - /* Enable GPIOB clock. */ + /* Enable GPIOC clock. */ /* Manually: */ //RCC_AHBENR |= RCC_AHBENR_GPIOCEN; /* Using API functions: */ rcc_periph_clock_enable(RCC_GPIOC); - /* Set GPIO6 (in GPIO port B) to 'output push-pull'. */ + /* Set GPIO8 (in GPIO port C) to 'output push-pull'. */ /* Using API functions: */ gpio_mode_setup(PORT_LED, GPIO_MODE_OUTPUT, GPIO_PUPD_NONE, PIN_LED); } @@ -51,12 +51,12 @@ int main(void) // GPIOC_BSRR = PIN_LED; /* LED off */ // for (i = 0; i < 1000000; i++) /* Wait a bit. */ // __asm__("nop"); - // GPIOC_BRR = PIN_LED; /* LED on */ + // GPIOC_BRR = PIN_LED; /* LED on */ // for (i = 0; i < 1000000; i++) /* Wait a bit. */ // __asm__("nop"); /* Using API functions gpio_set()/gpio_clear(): */ - // gpio_set(PORT_LED, PIN_LED); /* LED off */ + // gpio_set(PORT_LED, PIN_LED); /* LED off */ // for (i = 0; i < 1000000; i++) /* Wait a bit. */ // __asm__("nop"); // gpio_clear(PORT_LED, PIN_LED); /* LED on */