aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3
diff options
context:
space:
mode:
authorKarl Palsson2012-06-12 15:23:16 +0000
committerKarl Palsson2012-06-12 20:56:34 +0000
commit62849f043c9e1d9bf06f964d0be516301dfe82a4 (patch)
tree824bec04035a97403f0f6e658adc48ded16ac44c /include/libopencm3
parent154f67598bb06c0c152bf121979c2292f7f10a84 (diff)
Add helper function for max clock on HSI for f100
Based on existing HSI code. Tested with f100c8, on custom board with no external crystals or resonators.
Diffstat (limited to 'include/libopencm3')
-rw-r--r--include/libopencm3/stm32/f1/rcc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/f1/rcc.h b/include/libopencm3/stm32/f1/rcc.h
index 9cbe1e7..6ce2340 100644
--- a/include/libopencm3/stm32/f1/rcc.h
+++ b/include/libopencm3/stm32/f1/rcc.h
@@ -408,6 +408,11 @@ void rcc_set_usbpre(u32 usbpre);
u32 rcc_get_system_clock_source(int i);
void rcc_clock_setup_in_hsi_out_64mhz(void);
void rcc_clock_setup_in_hsi_out_48mhz(void);
+
+/**
+ * Maximum speed possible for F100 (Value Line) on HSI
+ */
+void rcc_clock_setup_in_hsi_out_24mhz(void);
void rcc_clock_setup_in_hse_8mhz_out_24mhz(void);
void rcc_clock_setup_in_hse_8mhz_out_72mhz(void);
void rcc_clock_setup_in_hse_12mhz_out_72mhz(void);