aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f1/obldc/usart
diff options
context:
space:
mode:
authorUwe Hermann2011-11-12 17:49:22 +0100
committerUwe Hermann2011-11-12 17:53:06 +0100
commit4cf395d3c97e14e2e4797dc7672d41ade893628e (patch)
tree1b551f504dd7dfce802a19d7e72c31a607a4e9cb /examples/stm32/f1/obldc/usart
parentf3f1123d075836e46cdaeeae02b815cc511c0819 (diff)
obldc examples: Fix comments and coding-style.
Diffstat (limited to 'examples/stm32/f1/obldc/usart')
-rw-r--r--examples/stm32/f1/obldc/usart/usart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32/f1/obldc/usart/usart.c b/examples/stm32/f1/obldc/usart/usart.c
index b2efe71..9999f72 100644
--- a/examples/stm32/f1/obldc/usart/usart.c
+++ b/examples/stm32/f1/obldc/usart/usart.c
@@ -60,7 +60,7 @@ void usart_setup(void)
void gpio_setup(void)
{
- /* Set GPIO12 (in GPIO port C) to 'output push-pull'. */
+ /* Set GPIO6 (in GPIO port A) to 'output push-pull'. */
gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_50_MHZ,
GPIO_CNF_OUTPUT_PUSHPULL, GPIO6);
}
@@ -73,7 +73,7 @@ int main(void)
gpio_setup();
usart_setup();
- /* Blink the LED (PC12) on the board with every transmitted byte. */
+ /* Blink the LED (PA6) on the board with every transmitted byte. */
while (1) {
gpio_toggle(GPIOA, GPIO6); /* LED on/off */
usart_send_blocking(USART1, c + '0'); /* Send a byte. */