libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
#include <libopencm3/cm3/assert.h>
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/flash.h>
#include <libopencm3/stm32/pwr.h>
Go to the source code of this file.
Functions | |
void | rcc_osc_ready_int_clear (enum rcc_osc osc) |
void | rcc_osc_ready_int_enable (enum rcc_osc osc) |
void | rcc_osc_ready_int_disable (enum rcc_osc osc) |
int | rcc_osc_ready_int_flag (enum rcc_osc osc) |
void | rcc_css_int_clear (void) |
int | rcc_css_int_flag (void) |
bool | rcc_is_osc_ready (enum rcc_osc osc) |
Is the given oscillator ready? More... | |
void | rcc_wait_for_osc_ready (enum rcc_osc osc) |
Wait for Oscillator Ready. More... | |
void | rcc_wait_for_sysclk_status (enum rcc_osc osc) |
void | rcc_osc_on (enum rcc_osc osc) |
void | rcc_osc_off (enum rcc_osc osc) |
void | rcc_css_enable (void) |
void | rcc_css_disable (void) |
void | rcc_set_sysclk_source (uint32_t clk) |
void | rcc_set_pll_source (uint32_t pllsrc) |
void | rcc_set_ppre2 (uint32_t ppre2) |
void | rcc_set_ppre1 (uint32_t ppre1) |
void | rcc_set_hpre (uint32_t hpre) |
void | rcc_set_main_pll (uint32_t source, uint32_t pllm, uint32_t plln, uint32_t pllp, uint32_t pllq, uint32_t pllr) |
uint32_t | rcc_system_clock_source (void) |
void | rcc_clock_setup_pll (const struct rcc_clock_scale *clock) |
Setup clocks to run from PLL. More... | |
void | rcc_set_msi_range (uint32_t msi_range) |
Set the msi run time range. More... | |
void | rcc_set_msi_range_standby (uint32_t msi_range) |
Set the msi range after reset/standby. More... | |
void | rcc_pll_output_enable (uint32_t pllout) |
Enable PLL Output. More... | |
void | rcc_set_clock48_source (uint32_t clksel) |
Set clock source for 48MHz clock. More... | |
void | rcc_enable_rtc_clock (void) |
Enable the RTC clock. More... | |
void | rcc_disable_rtc_clock (void) |
Disable the RTC clock. More... | |
void | rcc_set_rtc_clock_source (enum rcc_osc clk) |
Set the source for the RTC clock. More... | |
static uint32_t | rcc_uart_i2c_clksel_freq_hz (uint32_t apb_clk, uint8_t shift, uint32_t clock_reg) |
uint32_t | rcc_get_usart_clk_freq (uint32_t usart) |
Get the peripheral clock speed for the USART at base specified. More... | |
uint32_t | rcc_get_timer_clk_freq (uint32_t timer) |
Get the peripheral clock speed for the Timer at base specified. More... | |
uint32_t | rcc_get_i2c_clk_freq (uint32_t i2c) |
Get the peripheral clock speed for the I2C device at base specified. More... | |
uint32_t | rcc_get_spi_clk_freq (uint32_t spi) |
Get the peripheral clock speed for the SPI device at base specified. More... | |
Variables | |
uint32_t | rcc_ahb_frequency = 4000000 |
uint32_t | rcc_apb1_frequency = 4000000 |
uint32_t | rcc_apb2_frequency = 4000000 |
const struct rcc_clock_scale | rcc_hsi16_configs [RCC_CLOCK_CONFIG_END] |