aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f1/obldc/usart/usart.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32/f1/obldc/usart/usart.c')
-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. */