62 .apb1_frequency = 30000000,
63 .apb2_frequency = 60000000,
263 reg32 &= ~((1 << 1) | (1 << 0));
281 reg32 &= ~((1 << 13) | (1 << 14) | (1 << 15));
290 reg32 &= ~((1 << 10) | (1 << 11) | (1 << 12));
299 reg32 &= ~((1 << 4) | (1 << 5) | (1 << 6) | (1 << 7));
308 reg32 &= ~((1 << 16) | (1 << 17) | (1 << 18) | (1 << 19) | (1 << 20));
309 RCC_CFGR = (reg32 | (rtcpre << 16));
#define cm3_assert_not_reached()
Check if unreachable code is reached.
void flash_set_ws(uint32_t ws)
Set the Number of Wait States.
#define FLASH_ACR_LATENCY_3WS
#define RCC_CFGR_HPRE_NODIV
#define RCC_CFGR_PPRE_DIV2
#define RCC_CFGR_PPRE_DIV4
#define RCC_CFGR_PPRE_DIV_NONE
#define RCC_PLLCFGR_PLLN_SHIFT
#define RCC_CFGR_PPRE1_MASK
#define RCC_CFGR_PPRE2_SHIFT
#define RCC_CFGR_PPRE2_MASK
#define RCC_CFGR_SWS_MASK
#define RCC_PLLCFGR_PLLSRC
#define RCC_CFGR_SWS_SHIFT
#define RCC_PLLCFGR_PLLQ_SHIFT
#define RCC_PLLCFGR_PLLM_SHIFT
#define RCC_PLLCFGR_PLLP_SHIFT
#define RCC_CFGR_PPRE1_SHIFT
int rcc_osc_ready_int_flag(enum rcc_osc osc)
void rcc_clock_setup_hse_3v3(const struct rcc_clock_scale *clock)
int rcc_css_int_flag(void)
void rcc_osc_ready_int_clear(enum rcc_osc osc)
void rcc_wait_for_osc_ready(enum rcc_osc osc)
Wait for Oscillator Ready.
void rcc_css_disable(void)
bool rcc_is_osc_ready(enum rcc_osc osc)
Is the given oscillator ready?
uint32_t rcc_get_spi_clk_freq(uint32_t spi)
Get the peripheral clock speed for the SPI device at base specified.
void rcc_set_sysclk_source(uint32_t clk)
uint32_t rcc_apb2_frequency
void rcc_set_pll_source(uint32_t pllsrc)
uint32_t rcc_get_timer_clk_freq(uint32_t timer)
Get the peripheral clock speed for the Timer at base specified.
uint32_t rcc_system_clock_source(void)
const struct rcc_clock_scale rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_END]
uint32_t rcc_get_usart_clk_freq(uint32_t usart)
Get the peripheral clock speed for the USART at base specified.
void rcc_set_rtcpre(uint32_t rtcpre)
void rcc_osc_ready_int_enable(enum rcc_osc osc)
void rcc_osc_ready_int_disable(enum rcc_osc osc)
void rcc_osc_on(enum rcc_osc osc)
uint32_t rcc_ahb_frequency
void rcc_osc_off(enum rcc_osc osc)
uint32_t rcc_get_i2c_clk_freq(uint32_t i2c)
Get the peripheral clock speed for the I2C device at base specified.
void rcc_backupdomain_reset(void)
uint32_t rcc_apb1_frequency
void rcc_wait_for_sysclk_status(enum rcc_osc osc)
void rcc_set_ppre1(uint32_t ppre1)
void rcc_css_int_clear(void)
void rcc_set_ppre2(uint32_t ppre2)
void rcc_set_main_pll_hse(uint32_t pllm, uint32_t plln, uint32_t pllp, uint32_t pllq)
void rcc_set_main_pll_hsi(uint32_t pllm, uint32_t plln, uint32_t pllp, uint32_t pllq)
void rcc_css_enable(void)
void rcc_set_hpre(uint32_t hpre)