aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f1/obldc/systick/systick.c
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/systick/systick.c
parentf3f1123d075836e46cdaeeae02b815cc511c0819 (diff)
obldc examples: Fix comments and coding-style.
Diffstat (limited to 'examples/stm32/f1/obldc/systick/systick.c')
-rw-r--r--examples/stm32/f1/obldc/systick/systick.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/stm32/f1/obldc/systick/systick.c b/examples/stm32/f1/obldc/systick/systick.c
index 263230f..f011a76 100644
--- a/examples/stm32/f1/obldc/systick/systick.c
+++ b/examples/stm32/f1/obldc/systick/systick.c
@@ -34,10 +34,10 @@ void gpio_setup(void)
/* Enable GPIOB clock. */
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPBEN);
- gpio_set(GPIOA, GPIO6); /* LED0 off */
- gpio_set(GPIOA, GPIO7); /* LED1 off */
- gpio_set(GPIOB, GPIO0); /* LED2 off */
- gpio_set(GPIOB, GPIO1); /* LED3 off */
+ gpio_set(GPIOA, GPIO6); /* LED0 off */
+ gpio_set(GPIOA, GPIO7); /* LED1 off */
+ gpio_set(GPIOB, GPIO0); /* LED2 off */
+ gpio_set(GPIOB, GPIO1); /* LED3 off */
/* Set GPIO6/7 (in GPIO port A) to 'output push-pull' for the LEDs. */
gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_50_MHZ,
@@ -45,7 +45,7 @@ void gpio_setup(void)
gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_50_MHZ,
GPIO_CNF_OUTPUT_PUSHPULL, GPIO7);
- /* Set GPIO6/7 (in GPIO port B) to 'output push-pull' for the LEDs. */
+ /* Set GPIO0/1 (in GPIO port B) to 'output push-pull' for the LEDs. */
gpio_set_mode(GPIOB, GPIO_MODE_OUTPUT_50_MHZ,
GPIO_CNF_OUTPUT_PUSHPULL, GPIO0);
gpio_set_mode(GPIOB, GPIO_MODE_OUTPUT_50_MHZ,
@@ -74,7 +74,7 @@ int main(void)
temp32 = 0;
/* 72MHz / 8 => 9000000 counts per second */
- systick_set_clocksource(STK_CTRL_CLKSOURCE_AHB_DIV8);
+ systick_set_clocksource(STK_CTRL_CLKSOURCE_AHB_DIV8);
/* 9000000/9000 = 1000 overflows per second - every 1ms one interrupt */
systick_set_reload(9000);