obldc examples: Fix comments and coding-style.

This commit is contained in:
Uwe Hermann
2011-11-12 17:49:22 +01:00
parent f3f1123d07
commit 4cf395d3c9
6 changed files with 32 additions and 32 deletions

View File

@@ -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. */