#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 FLASH_ACR_LATENCY_024_048MHZ
#define RCC_CFGR3_USART1SW_SHIFT
#define RCC_CFGR3_USART2SW_SHIFT
#define RCC_CFGR3_USART3SW_SHIFT
#define RCC_CFGR3_USARTxSW_PCLK
#define RCC_CFGR3_USARTxSW_LSE
#define RCC_CFGR3_USARTxSW_HSI
#define RCC_CFGR3_USARTxSW_SYSCLK
#define RCC_CFGR_HPRE_NODIV
#define RCC_CFGR_PPRE_NODIV
#define RCC_CFGR_PLLXTPRE_HSE_CLK
#define RCC_CFGR_PLLSRC_HSE_CLK
#define RCC_CFGR_PLLSRC_HSI_CLK_DIV2
#define RCC_CFGR_PLLMUL_MUL6
#define RCC_CFGR_PLLMUL_MUL12
#define RCC_BDCR_RTCSEL_LSE
#define RCC_CFGR_PPRE_SHIFT
#define RCC_CIR_HSI48RDYF
#define RCC_CIR_HSI14RDYIE
#define RCC_CFGR_SWS_HSI48
#define RCC_CFGR_HPRE_MASK
#define RCC_CIR_HSI14RDYF
#define RCC_BDCR_RTCSEL_LSI
#define RCC_CIR_HSI48RDYC
#define RCC_CFGR_PPRE_MASK
#define RCC_CFGR3_USARTxSW_MASK
#define RCC_CFGR_SW_HSI48
#define RCC_CIR_HSI14RDYC
#define RCC_CFGR_HPRE_SHIFT
#define RCC_BDCR_RTCSEL_HSE
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_CIR_HSI48RDYIE
int rcc_osc_ready_int_flag(enum rcc_osc osc)
RCC Read the Oscillator Ready Interrupt Flag.
void rcc_set_ppre(uint32_t ppre)
RCC Set the APB Prescale Factor.
void rcc_set_sysclk_source(enum rcc_osc clk)
RCC Set the Source for the System Clock.
int rcc_css_int_flag(void)
RCC Read the Clock Security System Interrupt Flag.
void rcc_set_i2c_clock_sysclk(uint32_t i2c)
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)
Wait for Oscillator Ready.
void rcc_css_disable(void)
RCC Disable the Clock Security System.
enum rcc_osc rcc_system_clock_source(void)
RCC Get the System Clock Source.
bool rcc_is_osc_ready(enum rcc_osc osc)
Is the given oscillator ready?
static uint32_t rcc_get_usart_clksel_freq(uint8_t shift)
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_pll_source(uint32_t pllsrc)
RCC Set the PLL Clock Source.
uint32_t rcc_get_timer_clk_freq(uint32_t timer)
Get the peripheral clock speed for the Timer at base specified.
enum rcc_osc rcc_usb_clock_source(void)
RCC Get the USB Clock Source.
uint32_t rcc_get_usart_clk_freq(uint32_t usart)
Get the peripheral clock speed for the USART at base specified.
void rcc_set_usbclk_source(enum rcc_osc clk)
RCC Set the Source for the USB Clock.
void rcc_set_prediv(uint32_t prediv)
Set PLL Source pre-divider CAUTION.
void rcc_osc_ready_int_enable(enum rcc_osc osc)
RCC Enable the Oscillator Ready Interrupt.
void rcc_set_rtc_clock_source(enum rcc_osc clk)
RCC Set the Source for the RTC clock.
void rcc_clock_setup_in_hse_8mhz_out_48mhz(void)
Set System Clock PLL at 48MHz from HSE at 8MHz.
void rcc_disable_rtc_clock(void)
RCC Disable the RTC clock.
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_clock_setup_in_hsi48_out_48mhz(void)
Set System Clock HSI48 at 48MHz.
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_multiplication_factor(uint32_t mul)
RCC Set the PLL Multiplication Factor.
uint32_t rcc_apb1_frequency
uint32_t rcc_get_i2c_clocks(void)
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_i2c_clock_hsi(uint32_t i2c)
void rcc_clock_setup_in_hsi_out_48mhz(void)
Set System Clock PLL at 48MHz from HSI.
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.