void rcc_wait_for_pll_ready(void)
Wait for main PLL to lock.
void rcc_set_pll_divisor(uint8_t div400)
Set the PLL clock divisor (from 400MHz)
uint32_t rcc_get_system_clock_frequency(void)
Get the system clock frequency.
void rcc_enable_interal_osc(void)
Enable the internal oscillator.
osc_src
Oscillator source values.
void rcc_disable_interal_osc(void)
Disable the internal oscillator.
void rcc_pll_bypass_enable(void)
Enable the PLL bypass and use the oscillator clock.
void rcc_configure_xtal(enum xtal_t xtal)
Configure the crystal type connected to the device.
void rcc_pll_off(void)
Power down the main PLL.
void rcc_disable_main_osc(void)
Disable the main oscillator.
void rcc_usb_pll_off(void)
Power down the USB PLL.
void rcc_set_osc_source(enum osc_src src)
Set the oscillator source to be used by the system clock.
void rcc_change_pll_divisor(uint8_t plldiv400)
Change the PLL divisor.
xtal_t
Predefined crystal values.
void rcc_sysclk_config(enum osc_src src, enum xtal_t xtal, uint8_t pll_div400)
Configure the system clock source.
pwm_clkdiv
PWM clock divisor values.
void rcc_pll_bypass_disable(void)
Disable the PLL bypass and use the PLL clock.
void rcc_set_pwm_divisor(enum pwm_clkdiv div)
Set the PWM unit clock divisor.
void rcc_enable_rcc2(void)
Enable the use of SYSCTL_RCC2 register for clock control.
void rcc_usb_pll_on(void)
Power up the USB PLL.
void rcc_pll_on(void)
Power up the main PLL.
void rcc_enable_main_osc(void)
Enable the main oscillator.
#define SYSCTL_RCC_XTAL_6M
#define SYSCTL_RCC_XTAL_25M
#define SYSCTL_RCC_PWMDIV_2
#define SYSCTL_RCC_XTAL_14M_31818
#define SYSCTL_RCC_XTAL_6M_144
#define SYSCTL_RCC_PWMDIV_8
#define SYSCTL_RCC_XTAL_4M_9152
#define SYSCTL_RCC_XTAL_12M
#define SYSCTL_RCC_PWMDIV_32
#define SYSCTL_RCC2_OSCSRC2_MOSC
#define SYSCTL_RCC_XTAL_8M
#define SYSCTL_RCC_PWMDIV_64
#define SYSCTL_RCC_XTAL_24M
#define SYSCTL_RCC2_OSCSRC2_PIOSC
#define SYSCTL_RCC2_OSCSRC2_30K
#define SYSCTL_RCC_PWMDIV_4
#define SYSCTL_RCC_XTAL_5M
#define SYSCTL_RCC2_OSCSRC2_PIOSC_D4
#define SYSCTL_RCC_XTAL_16M_384
#define SYSCTL_RCC_XTAL_10M
#define SYSCTL_RCC_XTAL_4M_096
#define SYSCTL_RCC_XTAL_20M
#define SYSCTL_RCC_XTAL_16M
#define SYSCTL_RCC_XTAL_7M_3728
#define SYSCTL_RCC_XTAL_12M_288
#define SYSCTL_RCC_XTAL_5M_12
#define SYSCTL_RCC_XTAL_4M
#define SYSCTL_RCC_PWMDIV_16
#define SYSCTL_RCC_XTAL_8M_192
#define SYSCTL_RCC_XTAL_18M
#define SYSCTL_RCC2_OSCSRC2_32K768
#define SYSCTL_RCC_XTAL_13M_56