From 4cf395d3c97e14e2e4797dc7672d41ade893628e Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 12 Nov 2011 17:49:22 +0100 Subject: obldc examples: Fix comments and coding-style. --- examples/stm32/f1/obldc/systick/systick.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'examples/stm32/f1/obldc/systick') 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); -- cgit v1.2.3