diff options
author | Karl Palsson <karlp@etactica.com> | 2016-08-16 20:57:57 +0300 |
---|---|---|
committer | Karl Palsson <karlp@tweak.net.au> | 2016-08-19 02:41:04 +0300 |
commit | 08aac020adb55e9f28eaf14a9b791b3a2d20c0a3 (patch) | |
tree | 0e7bb26cdca51ed8f9782a25d48b59ee761fc55b /include/libopencm3/stm32/common/rcc_common_all.h | |
parent | 4eb51ecaea7c3215f8da56b5ed10867a80d2ef18 (diff) |
stm32: rcc: provide async routines for osc checks
Start providing async routines for all blocking routines, to make it
easier to use libopencm3 in some RTOS environments. This is not in
anyway intended to be complete, this just covers a single blocking
routine, rcc_wait_for_osc_ready. Documentation added to the top level,
and provided for all stm32 families.
Diffstat (limited to 'include/libopencm3/stm32/common/rcc_common_all.h')
-rw-r--r-- | include/libopencm3/stm32/common/rcc_common_all.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/common/rcc_common_all.h b/include/libopencm3/stm32/common/rcc_common_all.h index 7a9fa520..c610be8e 100644 --- a/include/libopencm3/stm32/common/rcc_common_all.h +++ b/include/libopencm3/stm32/common/rcc_common_all.h @@ -52,6 +52,13 @@ void rcc_periph_reset_release(enum rcc_periph_rst rst); void rcc_set_mco(uint32_t mcosrc); /** + * Is the given oscillator ready? + * @param osc Oscillator ID + * @return true if the hardware indicates the oscillator is ready. + */ +bool rcc_is_osc_ready(enum rcc_osc osc); + +/** * Wait for Oscillator Ready. * Block until the hardware indicates that the Oscillator is ready. * @param osc Oscillator ID |