54 .flash_waitstates = 1,
55 .ahb_frequency = 48000000,
56 .apb1_frequency = 24000000,
57 .apb2_frequency = 48000000,
65 .flash_waitstates = 2,
66 .ahb_frequency = 64000000,
67 .apb1_frequency = 32000000,
68 .apb2_frequency = 64000000,
78 .flash_waitstates = 2,
82 .ahb_frequency = 72e6,
83 .apb1_frequency = 36e6,
84 .apb2_frequency = 72e6,
290 reg32 &= ~((1 << 1) | (1 << 0));
299 reg32 &= ~RCC_CFGR_PLLSRC;
#define RCC_CFGR2_ADC12PRES_SHIFT
#define RCC_CFGR_PPRE1_MASK
#define RCC_CFGR_PPRE2_SHIFT
#define RCC_CFGR3_UARTxSW_MASK
#define RCC_CFGR_PPRE2_MASK
#define RCC_CFGR_HPRE_MASK
#define RCC_CFGR_SWS_MASK
#define RCC_CFGR_PLLMUL_MUL16
#define RCC_CFGR_PLLSRC_HSE_PREDIV
#define RCC_CFGR_PLLMUL_MUL12
#define RCC_CFGR_SWS_SHIFT
#define RCC_CFGR_PLLMUL_SHIFT
#define RCC_CFGR_HPRE_SHIFT
#define RCC_CFGR_PLLSRC_HSI_DIV2
#define RCC_CFGR_PLLMUL_MASK
#define RCC_CFGR2_ADCxPRES_MASK
#define RCC_CFGR_PLLMUL_MUL9
#define RCC_CFGR2_ADC34PRES_SHIFT
#define RCC_CFGR_PPRE1_SHIFT
#define cm3_assert_not_reached()
Check if unreachable code is reached.
void flash_prefetch_enable(void)
This buffer is used for instruction fetches and may or may not be enabled by default,...
void flash_set_ws(uint32_t ws)
Set the Number of Wait States.
#define RCC_CFGR2_PREDIV_NODIV
#define RCC_CFGR3_UART5SW_SHIFT
#define RCC_CFGR3_UART4SW_SHIFT
#define RCC_CFGR3_UART2SW_SHIFT
#define RCC_CFGR3_UART1SW_SHIFT
#define RCC_CFGR3_UART3SW_SHIFT
#define RCC_CFGR3_UARTxSW_SYSCLK
#define RCC_CFGR3_UARTxSW_PCLK
#define RCC_CFGR3_UARTxSW_LSE
#define RCC_CFGR3_UARTxSW_HSI
#define RCC_CFGR_HPRE_NODIV
#define RCC_CFGR_PPRE_DIV2
#define RCC_CFGR_PPRE_NODIV
#define RCC_CFGR_PPRE2_DIV_NONE
#define RCC_CFGR_PPRE1_DIV_NONE
uint16_t rcc_get_div_from_hpre(uint8_t div_val)
This will return the divisor 1/2/4/8/16/64/128/256/512 which is set as a 4-bit value,...
int rcc_osc_ready_int_flag(enum rcc_osc osc)
int rcc_css_int_flag(void)
void rcc_set_i2c_clock_sysclk(uint32_t i2c)
static uint32_t rcc_get_usart_clksel_freq(uint32_t apb_clk, uint8_t shift)
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)
const struct rcc_clock_scale rcc_hsi_configs[]
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.
const struct rcc_clock_scale rcc_hse8mhz_configs[]
void rcc_usb_prescale_1(void)
uint32_t rcc_get_usart_clk_freq(uint32_t usart)
Get the peripheral clock speed for the USART at base specified.
void rcc_clock_setup_pll(const struct rcc_clock_scale *clock)
Setup clocks to run from PLL.
void rcc_set_prediv(uint32_t prediv)
Set PLL Source pre-divider CAUTION.
void rcc_osc_ready_int_enable(enum rcc_osc osc)
void rcc_usb_prescale_1_5(void)
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_system_clock_source(void)
uint32_t rcc_get_i2c_clk_freq(uint32_t i2c)
Get the peripheral clock speed for the I2C device at base specified.
void rcc_set_pll_multiplier(uint32_t pll)
void rcc_backupdomain_reset(void)
uint32_t rcc_apb1_frequency
void rcc_wait_for_sysclk_status(enum rcc_osc osc)
void rcc_adc_prescale(uint32_t prescale1, uint32_t prescale2)
uint32_t rcc_get_i2c_clocks(void)
void rcc_set_ppre1(uint32_t ppre1)
void rcc_css_int_clear(void)
void rcc_set_ppre2(uint32_t ppre2)
void rcc_set_i2c_clock_hsi(uint32_t i2c)
void rcc_css_enable(void)
void rcc_set_hpre(uint32_t hpre)
void rcc_wait_for_osc_not_ready(enum rcc_osc osc)
void rcc_clock_setup_hsi(const struct rcc_clock_scale *clock)
uint32_t flash_waitstates