aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPiotr Esden-Tempski2010-03-04 20:37:04 +0100
committerPiotr Esden-Tempski2010-03-04 20:37:04 +0100
commitd7489ebfbd0798c804ed3d7073040cedaea38d26 (patch)
tree11be596cedb87afb9881b6b21e4e20c1364edeb1 /include
parentd84c4030b2c90cb2c2fe0a50cfeb1e34cdf48560 (diff)
Added standard clock setup routines.
Thanks to Thomas Otto for pointing out problems with the clock code in examples and his clock routine implementations. Based on that the most common clock combination routines were added to the library and all routines in examples setting up the clock replaced with calls to that functions.
Diffstat (limited to 'include')
-rw-r--r--include/libopenstm32/rcc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libopenstm32/rcc.h b/include/libopenstm32/rcc.h
index 2d9c2a0..5495edd 100644
--- a/include/libopenstm32/rcc.h
+++ b/include/libopenstm32/rcc.h
@@ -398,5 +398,7 @@ void rcc_set_ppre2(u32 ppre2);
void rcc_set_ppre1(u32 ppre1);
void rcc_set_hpre(u32 hpre);
u32 rcc_get_system_clock_source(int i);
+void rcc_clock_setup_in_hsi_out_64mhz(void);
+void rcc_clock_setup_in_hse_8mhz_out_72mhz(void);
#endif