124 reg32 &= ~SYSCTL_RCC_XTAL_MASK;
221 reg32 &= ~SYSCTL_RCC2_OSCSRC2_MASK;
280 reg32 &= ~SYSCTL_RCC2_SYSDIV400_MASK;
299 reg32 &= ~SYSCTL_RCC_PWMDIV_MASK;
391 const uint32_t freqs[] = {
osc_src
Oscillator source values.
xtal_t
Predefined crystal values.
pwm_clkdiv
PWM clock divisor values.
uint32_t rcc_get_system_clock_frequency(void)
Get the system clock frequency.
void rcc_change_pll_divisor(uint8_t pll_div400)
Change the PLL divisor.
static uint32_t xtal_to_freq(enum xtal_t xtal)
void rcc_sysclk_config(enum osc_src src, enum xtal_t xtal, uint8_t pll_div400)
Configure the system clock source.
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)
void rcc_enable_interal_osc(void)
Enable the internal oscillator.
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.
uint32_t lm4f_rcc_sysclk_freq
System clock frequency.
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_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_RCC2_BYPASS2
PLL Bypass 2.
#define SYSCTL_RCC_XTAL_MASK
Crystal Value.
#define SYSCTL_RCC2_USBPWRDN
Power-Down USB PLL.
#define SYSCTL_PLLSTAT_LOCK
PLL lock.
#define SYSCTL_RCC_MOSCDIS
Main Oscillator Disable.
#define SYSCTL_RCC2_PWRDN2
PLL Power Down 2.
#define SYSCTL_RCC_PWMDIV_MASK
PWM Unit Clock Divisor.
#define SYSCTL_RCC2_SYSDIV400_MASK
System clock divisor mask when RCC2_DIV400 is set.
#define SYSCTL_RCC2_DIV400
Divide PLL as 400 MHz vs.
#define SYSCTL_RCC_IOSCDIS
Precision Internal Oscillator Disable.
#define SYSCTL_RCC2_USERCC2
RCC2 overides RCC.
#define SYSCTL_RCC_USESYSDIV
Enable System Clock Divider.
#define SYSCTL_RCC2_OSCSRC2_MASK
Oscillator Source 2.