aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/stm32/stm32-discovery/fancyblink/fancyblink.c4
-rw-r--r--examples/stm32/stm32-discovery/miniblink/miniblink.c2
-rw-r--r--examples/stm32/stm32-discovery/rtc/rtc.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/examples/stm32/stm32-discovery/fancyblink/fancyblink.c b/examples/stm32/stm32-discovery/fancyblink/fancyblink.c
index afe9041..d40fb7b 100644
--- a/examples/stm32/stm32-discovery/fancyblink/fancyblink.c
+++ b/examples/stm32/stm32-discovery/fancyblink/fancyblink.c
@@ -33,7 +33,7 @@ void clock_setup(void)
void gpio_setup(void)
{
- /* Set GPIO6/7 (in GPIO port C) to 'output push-pull'. */
+ /* Set GPIO8/9 (in GPIO port C) to 'output push-pull'. */
gpio_set_mode(GPIOC, GPIO_MODE_OUTPUT_50_MHZ,
GPIO_CNF_OUTPUT_PUSHPULL, GPIO8);
gpio_set_mode(GPIOC, GPIO_MODE_OUTPUT_50_MHZ,
@@ -50,7 +50,7 @@ int main(void)
/* Set one LED for wigwag effect when toggling. */
gpio_set(GPIOC, GPIO8);
- /* Blink the LEDs (PC6 and PC7) on the board. */
+ /* Blink the LEDs (PC8 and PC9) on the board. */
while (1) {
gpio_toggle(GPIOC, GPIO8 | GPIO9); /* Toggle LEDs. */
for (i = 0; i < 2000000; i++) /* Wait a bit. */
diff --git a/examples/stm32/stm32-discovery/miniblink/miniblink.c b/examples/stm32/stm32-discovery/miniblink/miniblink.c
index 1992e88..a05f957 100644
--- a/examples/stm32/stm32-discovery/miniblink/miniblink.c
+++ b/examples/stm32/stm32-discovery/miniblink/miniblink.c
@@ -28,7 +28,7 @@ void gpio_setup(void)
/* Using API functions: */
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPCEN);
- /* Set GPIO12 (in GPIO port C) to 'output push-pull'. */
+ /* Set GPIO8 (in GPIO port C) to 'output push-pull'. */
/* Manually: */
// GPIOC_CRH = (GPIO_CNF_OUTPUT_PUSHPULL << (((8 - 8) * 4) + 2));
// GPIOC_CRH |= (GPIO_MODE_OUTPUT_2_MHZ << ((8 - 8) * 4));
diff --git a/examples/stm32/stm32-discovery/rtc/rtc.c b/examples/stm32/stm32-discovery/rtc/rtc.c
index 6e599c0..c99920f 100644
--- a/examples/stm32/stm32-discovery/rtc/rtc.c
+++ b/examples/stm32/stm32-discovery/rtc/rtc.c
@@ -62,7 +62,7 @@ void usart_setup(void)
void gpio_setup(void)
{
/* Set GPIO8 (in GPIO port C) to 'output push-pull'. */
- /* This drives the blue LED on the discovery. */
+ /* This drives the blue LED on the STM32VLDISCOVERY. */
gpio_set_mode(GPIOC, GPIO_MODE_OUTPUT_2_MHZ,
GPIO_CNF_OUTPUT_PUSHPULL, GPIO8);
}