33 .flash_waitstates = 7,
34 .ahb_frequency = 216000000,
35 .apb1_frequency = 54000000,
36 .apb2_frequency = 108000000,
47 .flash_waitstates = 5,
48 .ahb_frequency = 168000000,
49 .apb1_frequency = 42000000,
50 .apb2_frequency = 84000000,
61 .flash_waitstates = 3,
62 .ahb_frequency = 120000000,
63 .apb1_frequency = 30000000,
64 .apb2_frequency = 60000000,
75 .flash_waitstates = 2,
76 .ahb_frequency = 72000000,
77 .apb1_frequency = 18000000,
78 .apb2_frequency = 36000000,
89 .flash_waitstates = 1,
90 .ahb_frequency = 48000000,
91 .apb1_frequency = 24000000,
92 .apb2_frequency = 24000000,
103 .flash_waitstates = 0,
104 .ahb_frequency = 24000000,
105 .apb1_frequency = 24000000,
106 .apb2_frequency = 24000000,
378 uint8_t pllm = hse_mhz;
#define cm3_assert_not_reached()
Check if unreachable code is reached.
void flash_art_enable(void)
Enable the ART Cache.
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.
void pwr_enable_overdrive(void)
void pwr_set_vos_scale(enum pwr_vos_scale scale)
@ PWR_SCALE2
<= 180MHz w/o overdrive, <= 216MHz w/ overdrive
@ PWR_SCALE3
<= 168MHz w/o overdrive, <= 180MHz w/ overdrive
#define RCC_CFGR_HPRE_NODIV
#define RCC_CFGR_PPRE_DIV2
#define RCC_CFGR_PPRE_NODIV
#define RCC_CFGR_PPRE_DIV4
#define RCC_CFGR_PPRE_DIV_NONE
#define RCC_DCKCFGR2_UART4SEL_SHIFT
#define RCC_DCKCFGR2_UART7SEL_SHIFT
#define RCC_DCKCFGR2_UART1SEL_SHIFT
#define RCC_DCKCFGR2_UART3SEL_SHIFT
#define RCC_DCKCFGR2_UART5SEL_SHIFT
#define RCC_DCKCFGR2_USART6SEL_SHIFT
#define RCC_DCKCFGR2_UART2SEL_SHIFT
#define RCC_DCKCFGR2_UART8SEL_SHIFT
#define RCC_DCKCFGR2_UARTxSEL_PCLK
#define RCC_DCKCFGR2_UARTxSEL_SYSCLK
#define RCC_DCKCFGR2_UARTxSEL_LSE
#define RCC_DCKCFGR2_UARTxSEL_HSI
#define RCC_PLLCFGR_PLLN_SHIFT
#define RCC_CFGR_PPRE1_MASK
#define RCC_CFGR_PPRE2_SHIFT
#define RCC_CFGR_PPRE2_MASK
#define RCC_CFGR_HPRE_MASK
#define RCC_CFGR_SWS_MASK
#define RCC_DCKCFGR2_UARTxSEL_MASK
#define RCC_DCKCFGR2_I2C3SEL_SHIFT
#define RCC_DCKCFGR2_I2C1SEL_SHIFT
#define RCC_DCKCFGR2_I2C2SEL_SHIFT
void rcc_periph_clock_enable(enum rcc_periph_clken clken)
Enable Peripheral Clock in running mode.
#define RCC_PLLCFGR_PLLSRC
#define RCC_CFGR_SWS_SHIFT
#define RCC_CFGR_RTCPRE_SHIFT
#define RCC_CFGR_HPRE_SHIFT
#define RCC_CFGR_SW_SHIFT
#define RCC_PLLCFGR_PLLQ_SHIFT
#define RCC_PLLCFGR_PLLM_SHIFT
#define RCC_DCKCFGR2_I2C4SEL_SHIFT
#define RCC_PLLCFGR_PLLP_SHIFT
#define RCC_CFGR_PPRE1_SHIFT
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,...
#define RCC_CFGR_RTCPRE_MASK
int rcc_osc_ready_int_flag(enum rcc_osc osc)
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)
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)
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_clock_setup_hse(const struct rcc_clock_scale *clock, uint32_t hse_mhz)
static uint32_t rcc_usart_i2c_clksel_freq(uint32_t apb_clk, uint8_t shift)
const struct rcc_clock_scale rcc_3v3[RCC_CLOCK_3V3_END]
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.
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)
void rcc_clock_setup_hsi(const struct rcc_clock_scale *clock)
enum pwr_vos_scale vos_scale
uint32_t flash_waitstates