70 .ahb_frequency = 48000000,
71 .apb1_frequency = 24000000,
72 .apb2_frequency = 48000000,
81 .ahb_frequency = 64000000,
82 .apb1_frequency = 32000000,
83 .apb2_frequency = 64000000,
97 .ahb_frequency = 72000000,
98 .apb1_frequency = 36000000,
99 .apb2_frequency = 72000000,
442 switch (clock_source) {
#define cm3_assert_not_reached()
Check if unreachable code is reached.
#define RCC_CFGR_ADCPRE_DIV8
#define RCC_CFGR_HPRE_NODIV
#define RCC_CFGR_PPRE_DIV2
#define RCC_CFGR_PPRE_NODIV
#define RCC_CFGR_PLLSRC_HSE_CLK
#define RCC_CFGR_PLLSRC_HSI_CLK_DIV2
#define RCC_CFGR_PLLMUL_PLL_CLK_MUL16
#define RCC_CFGR_PLLMUL_PLL_CLK_MUL9
#define RCC_CFGR_PLLMUL_PLL_CLK_MUL12
#define RCC_CFGR_SW_SYSCLKSEL_HSICLK
#define RCC_CFGR_SW_SYSCLKSEL_PLLCLK
#define RCC_CFGR_SW_SYSCLKSEL_HSECLK
#define RCC_CFGR_USBPRE_PLL_CLK_DIV1_5
#define RCC_CFGR_PPRE2_SHIFT
#define RCC_CFGR_PLLMUL_4_SHIFT
#define RCC_CFGR_PLLMUL_0_3_SHIFT
#define RCC_CFGR2_PREDIV_NODIV
#define RCC_CFGR_SWS_SHIFT
#define RCC_CFGR_HPRE_SHIFT
#define RCC_CFGR_SW_SHIFT
#define RCC_CFGR_ADCPRE_SHIFT
#define RCC_CFGR_PPRE1_SHIFT
int rcc_osc_ready_int_flag(enum rcc_osc osc)
RCC Read the Oscillator Ready Interrupt Flag.
int rcc_css_int_flag(void)
RCC Read the Clock Security System Interrupt Flag.
void rcc_set_adcpre(uint32_t adcpre)
ADC Setup the A/D Clock.
void rcc_set_rtc_clock_source(enum rcc_osc clock_source)
RCC Set the Source for the RTC clock.
void rcc_osc_ready_int_clear(enum rcc_osc osc)
RCC Clear the Oscillator Ready Interrupt Flag.
void rcc_wait_for_osc_ready(enum rcc_osc osc)
RCC Wait for Oscillator Ready.
void rcc_css_disable(void)
RCC Disable the Clock Security System.
void rcc_set_sysclk_source(uint32_t clk)
RCC Set the Source for the System Clock.
const struct rcc_clock_scale rcc_hsi_configs[]
uint32_t rcc_apb2_frequency
void rcc_set_pll_source(uint32_t pllsrc)
RCC Set the PLL Clock Source.
uint32_t rcc_system_clock_source(void)
RCC Get the System Clock Source.
void rcc_clock_setup_pll(const struct rcc_clock_scale *clock)
Setup clocks to run from PLL.
void rcc_set_prediv(uint32_t prediv)
void rcc_osc_ready_int_enable(enum rcc_osc osc)
RCC Enable the Oscillator Ready Interrupt.
void rcc_osc_ready_int_disable(enum rcc_osc osc)
RCC Disable the Oscillator Ready Interrupt.
void rcc_osc_on(enum rcc_osc osc)
RCC Turn on an Oscillator.
uint32_t rcc_ahb_frequency
void rcc_osc_off(enum rcc_osc osc)
RCC Turn off an Oscillator.
void rcc_set_pll_multiplication_factor(uint32_t mul)
RCC Set the PLL Multiplication Factor.
void rcc_backupdomain_reset(void)
RCC Reset the Backup Domain.
uint32_t rcc_apb1_frequency
Set the default clock frequencies.
void rcc_set_ppre1(uint32_t ppre1)
RCC Set the APB1 Prescale Factor.
void rcc_css_int_clear(void)
RCC Clear the Clock Security System Interrupt Flag.
void rcc_enable_rtc_clock(void)
RCC Enable the RTC clock.
void rcc_set_ppre2(uint32_t ppre2)
RCC Set the APB2 Prescale Factor.
const struct rcc_clock_scale rcc_hse8_configs[]
void rcc_set_usbpre(uint32_t usbpre)
RCC Set the USB Prescale Factor.
void rcc_css_enable(void)
RCC Enable the Clock Security System.
void rcc_set_hpre(uint32_t hpre)
RCC Set the AHB Prescale Factor.
void rcc_set_pllxtpre(uint32_t pllxtpre)
RCC Set the HSE Frequency Divider used as PLL Clock Source.
uint32_t rcc_rtc_clock_enabled_flag(void)
RCC RTC Clock Enabled Flag.