From d97c937b8e7c33cf2b30f3606707bf785c4ee2ea Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 16 Nov 2011 21:53:27 +0100 Subject: lib: More small fixes. --- lib/stm32/f1/rcc.c | 2 +- lib/stm32/f1/vector.c | 2 +- lib/stm32/f2/vector.c | 2 +- lib/stm32/f4/rcc.c | 10 ++++------ 4 files changed, 7 insertions(+), 9 deletions(-) (limited to 'lib/stm32') diff --git a/lib/stm32/f1/rcc.c b/lib/stm32/f1/rcc.c index 13d93c4..ce45832 100644 --- a/lib/stm32/f1/rcc.c +++ b/lib/stm32/f1/rcc.c @@ -22,7 +22,7 @@ #include #include -/* Set the default ppre1 and ppre2 peripheral clock frequencies after reset */ +/* Set the default ppre1 and ppre2 peripheral clock frequencies after reset. */ u32 rcc_ppre1_frequency = 8000000; u32 rcc_ppre2_frequency = 8000000; diff --git a/lib/stm32/f1/vector.c b/lib/stm32/f1/vector.c index 071fe96..cb2759e 100644 --- a/lib/stm32/f1/vector.c +++ b/lib/stm32/f1/vector.c @@ -19,7 +19,7 @@ #define WEAK __attribute__ ((weak)) -/* Symbols exported by linker script */ +/* Symbols exported by the linker script(s). */ extern unsigned _etext, _data, _edata, _ebss, _stack; void main(void); diff --git a/lib/stm32/f2/vector.c b/lib/stm32/f2/vector.c index e4c8f30..51aea0a 100644 --- a/lib/stm32/f2/vector.c +++ b/lib/stm32/f2/vector.c @@ -122,7 +122,7 @@ void WEAK hash_rng_isr(void); __attribute__ ((section(".vectors"))) void (*const vector_table[]) (void) = { - (void*)&_stack, + (void *)&_stack, reset_handler, nmi_handler, hard_fault_handler, diff --git a/lib/stm32/f4/rcc.c b/lib/stm32/f4/rcc.c index 313d192..e10ef21 100644 --- a/lib/stm32/f4/rcc.c +++ b/lib/stm32/f4/rcc.c @@ -402,16 +402,14 @@ void rcc_clock_setup_hse_3v3(const clock_scale_t *clock) rcc_set_ppre1(clock->ppre1); rcc_set_ppre2(clock->ppre2); - rcc_set_main_pll_hse(clock->pllm, - clock->plln, - clock->pllp, - clock->pllq); + rcc_set_main_pll_hse(clock->pllm, clock->plln, + clock->pllp, clock->pllq); /* Enable PLL oscillator and wait for it to stabilize. */ rcc_osc_on(PLL); rcc_wait_for_osc_ready(PLL); - /* Configure flash settings */ + /* Configure flash settings. */ flash_set_ws(clock->flash_config); /* Select PLL as SYSCLK source. */ @@ -420,7 +418,7 @@ void rcc_clock_setup_hse_3v3(const clock_scale_t *clock) /* Wait for PLL clock to be selected. */ rcc_wait_for_sysclk_status(PLL); - /* Set the peripheral clock frequencies used */ + /* Set the peripheral clock frequencies used. */ rcc_ppre1_frequency = clock->apb1_frequency; rcc_ppre2_frequency = clock->apb2_frequency; } -- cgit v1.2.3