Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Palsson <karlp@tweak.net.au>2015-01-12 07:44:41 +0300
committerKarl Palsson <karlp@tweak.net.au>2015-04-29 04:22:27 +0300
commit5746fd4d25cee0341a2381761f10f198c1bf8197 (patch)
treece93da673ebfb4ffc9312f85f7dcf3b63e198b63 /include/libopencm3/stm32/common/rcc_common_all.h
parent7ba1b574817dc5f5351bb25496c26bd131155470 (diff)
stm32: common: Extract MCO source setting
This adds MCO source selection to some targets, and removes and standardizes the mask/shift usage for all targets. For devices that support MCO2, this supports only MCO1. No attempt has been made to extract MCO prescaler, which is not available on all F1 and F3.
Diffstat (limited to 'include/libopencm3/stm32/common/rcc_common_all.h')
-rw-r--r--include/libopencm3/stm32/common/rcc_common_all.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/common/rcc_common_all.h b/include/libopencm3/stm32/common/rcc_common_all.h
index 68511f1f..96ea5e0a 100644
--- a/include/libopencm3/stm32/common/rcc_common_all.h
+++ b/include/libopencm3/stm32/common/rcc_common_all.h
@@ -49,6 +49,8 @@ void rcc_periph_reset_pulse(enum rcc_periph_rst rst);
void rcc_periph_reset_hold(enum rcc_periph_rst rst);
void rcc_periph_reset_release(enum rcc_periph_rst rst);
+void rcc_set_mco(uint32_t mcosrc);
+
END_DECLS
/**@}*/