63 .ahb_frequency = 80000000,
64 .apb1_frequency = 80000000,
65 .apb2_frequency = 80000000,
#define cm3_assert_not_reached()
Check if unreachable code is reached.
void flash_icache_disable(void)
Disable the Instruction Cache.
void flash_icache_enable(void)
Enable the Instruction Cache.
void flash_dcache_disable(void)
Disable the data cache.
#define FLASH_ACR_LATENCY_4WS
void flash_dcache_enable(void)
Enable the data cache.
void flash_set_ws(uint32_t ws)
Set the Number of Wait States.
void pwr_set_vos_scale(enum pwr_vos_scale scale)
#define RCC_CFGR_HPRE_NODIV
#define RCC_CFGR_PPRE_NODIV
#define RCC_CR_MSIRANGE_SHIFT
#define RCC_CR_MSIRANGE_MASK
#define RCC_CSR_MSIRANGE_SHIFT
#define RCC_CSR_MSIRANGE_MASK
#define RCC_CCIPR_USARTxSEL_LSE
#define RCC_BDCR_RTCSEL_MASK
#define RCC_BDCR_RTCSEL_LSE
#define RCC_PLLCFGR_PLLSRC_SHIFT
#define RCC_CFGR_PPRE1_MASK
#define RCC_CFGR_PPRE2_SHIFT
#define RCC_CRRCR_HSI48ON
#define RCC_CCIPR_USART3SEL_SHIFT
#define RCC_CCIPR_UART4SEL_SHIFT
#define RCC_CIFR_HSI48RDYF
#define RCC_CCIPR_USART1SEL_SHIFT
#define RCC_CCIPR_LPUART1SEL_SHIFT
#define RCC_CFGR_PPRE2_MASK
#define RCC_CCIPR_LPTIMxSEL_APB
#define RCC_CFGR_HPRE_MASK
#define RCC_CFGR_SWS_MASK
#define RCC_PLLCFGR_PLLP_DIV7
#define RCC_CCIPR_USARTxSEL_SYSCLK
#define RCC_CCIPR_I2C2SEL_SHIFT
#define RCC_CFGR_SWS_HSI16
#define RCC_CCIPR_LPTIMxSEL_LSE
#define RCC_BDCR_RTCSEL_LSI
#define RCC_CCIPR_USART2SEL_SHIFT
#define RCC_PLLCFGR_PLLSRC_MASK
#define RCC_CIER_HSI48RDYIE
#define RCC_CICR_HSI48RDYC
#define RCC_CIER_LSERDYIE
#define RCC_CCIPR_I2C1SEL_SHIFT
#define RCC_PLLCFGR_PLLSRC_HSI16
#define RCC_CCIPR_USARTxSEL_MASK
#define RCC_BDCR_RTCSEL_SHIFT
#define RCC_CCIPR_LPTIM1SEL_SHIFT
#define RCC_CCIPR_LPTIMxSEL_MASK
#define RCC_PLLCFGR_PLLQ_DIV6
#define RCC_CCIPR_I2C3SEL_SHIFT
void rcc_periph_clock_enable(enum rcc_periph_clken clken)
Enable Peripheral Clock in running mode.
#define RCC_CCIPR_I2C4SEL_SHIFT
#define RCC_CFGR_SWS_SHIFT
#define RCC_CIER_MSIRDYIE
#define RCC_CCIPR_LPTIMxSEL_LSI
#define RCC_CRRCR_HSI48RDY
#define RCC_CCIPR_USARTxSEL_HSI16
#define RCC_CCIPR_UART5SEL_SHIFT
#define RCC_PLLCFGR_PLLR_SHIFT
#define RCC_CCIPR_LPTIMxSEL_HSI16
#define RCC_CFGR_HPRE_SHIFT
#define RCC_CCIPR_USARTxSEL_APB
#define RCC_CIER_HSIRDYIE
#define RCC_CFGR_SW_SHIFT
#define RCC_PLLCFGR_PLLQ_SHIFT
#define RCC_CIER_LSIRDYIE
#define RCC_CCIPR_CLK48SEL_MASK
#define RCC_CIER_PLLRDYIE
#define RCC_PLLCFGR_PLLR_DIV2
#define RCC_BDCR_RTCSEL_HSEDIV32
#define RCC_PLLCFGR_PLLREN
#define RCC_PLLCFGR_PLLSRC_HSE
#define RCC_CIER_HSERDYIE
#define RCC_CCIPR_LPTIM2SEL_SHIFT
#define RCC_CCIPR_CLK48SEL_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,...
int rcc_osc_ready_int_flag(enum rcc_osc osc)
void rcc_set_msi_range(uint32_t msi_range)
Set the msi run time range.
int rcc_css_int_flag(void)
void rcc_set_clock48_source(uint32_t clksel)
Set clock source for 48MHz clock.
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_set_main_pll(uint32_t source, uint32_t pllm, uint32_t plln, uint32_t pllp, uint32_t pllq, uint32_t pllr)
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)
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_osc_ready_int_enable(enum rcc_osc osc)
void rcc_set_rtc_clock_source(enum rcc_osc clk)
Set the source for the RTC clock.
void rcc_pll_output_enable(uint32_t pllout)
Enable PLL Output.
void rcc_disable_rtc_clock(void)
Disable the RTC clock.
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_set_msi_range_standby(uint32_t msi_range)
Set the msi range after reset/standby.
const struct rcc_clock_scale rcc_hsi16_configs[RCC_CLOCK_CONFIG_END]
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_enable_rtc_clock(void)
Enable the RTC clock.
void rcc_set_ppre2(uint32_t ppre2)
void rcc_css_enable(void)
void rcc_set_hpre(uint32_t hpre)
static uint32_t rcc_uart_i2c_clksel_freq_hz(uint32_t apb_clk, uint8_t shift, uint32_t clock_reg)
#define RCC_PLLCFGR_PLLM(x)
#define RCC_PLLCFGR_PLLM_SHIFT
#define RCC_PLLCFGR_PLLN_SHIFT
#define RCC_CICR
Clock interrupt clear register.
#define RCC_CR
Clock control register.
#define RCC_CIFR
Clock interrupt flag resiger.
#define RCC_CSR
Clock control and status register.
#define RCC_PLLCFGR
PLL Configuration register.
#define RCC_CIER
Clock interrupt enable register.
#define RCC_CFGR
Clock Configuration register.
#define RCC_BDCR
Backup Domain control register.
enum pwr_vos_scale voltage_scale