aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f1/stm32-h103/usart/usart.c
diff options
context:
space:
mode:
authorUwe Hermann2011-11-13 17:07:21 +0100
committerUwe Hermann2011-11-13 23:21:58 +0100
commitbb8741a79bba96416b0454d4a97060866fa3a3a1 (patch)
treedbe7daf4c6b37a20362bce48a82f373c4eb5c3aa /examples/stm32/f1/stm32-h103/usart/usart.c
parentc3fea659d1313e324bb7512e7e50875e0cb0318a (diff)
examples: Even more coding-style fixes.
Diffstat (limited to 'examples/stm32/f1/stm32-h103/usart/usart.c')
-rw-r--r--examples/stm32/f1/stm32-h103/usart/usart.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/stm32/f1/stm32-h103/usart/usart.c b/examples/stm32/f1/stm32-h103/usart/usart.c
index 9c39dc1..b195960 100644
--- a/examples/stm32/f1/stm32-h103/usart/usart.c
+++ b/examples/stm32/f1/stm32-h103/usart/usart.c
@@ -102,12 +102,12 @@ int main(void)
/* Blink the LED (PC12) on the board with every transmitted byte. */
while (1) {
- gpio_toggle(GPIOC, GPIO12); /* LED on/off */
- usart_send_blocking(USART1, c + '0'); /* USART1: Send byte. */
- usart_send_blocking(USART2, c + '0'); /* USART2: Send byte. */
- usart_send_blocking(USART3, c + '0'); /* USART3: Send byte. */
+ gpio_toggle(GPIOC, GPIO12); /* LED on/off */
+ usart_send_blocking(USART1, c + '0'); /* USART1: Send byte. */
+ usart_send_blocking(USART2, c + '0'); /* USART2: Send byte. */
+ usart_send_blocking(USART3, c + '0'); /* USART3: Send byte. */
c = (c == 9) ? 0 : c + 1; /* Increment c. */
- if ((j++ % 80) == 0) { /* Newline after line full. */
+ if ((j++ % 80) == 0) { /* Newline after line full. */
usart_send_blocking(USART1, '\r');
usart_send_blocking(USART1, '\n');
usart_send_blocking(USART2, '\r');