Macros | |
#define | SYSCTL_IRC_FREQ (12000000) |
Typedefs | |
typedef enum CHIP_SYSCTL_CLKOUTSRC | CHIP_SYSCTL_CLKOUTSRC_T |
typedef enum CHIP_SYSCTL_CLOCK | CHIP_SYSCTL_CLOCK_T |
typedef enum CHIP_SYSCTL_MAINCLKSRC | CHIP_SYSCTL_MAINCLKSRC_T |
typedef enum CHIP_SYSCTL_PLLCLKSRC | CHIP_SYSCTL_PLLCLKSRC_T |
typedef enum CHIP_WDTLFO_OSC | CHIP_WDTLFO_OSC_T |
Functions | |
STATIC INLINE void | Chip_Clock_DisablePeriphClock (CHIP_SYSCTL_CLOCK_T clk) |
Disable a system or peripheral clock. More... | |
STATIC INLINE void | Chip_Clock_EnablePeriphClock (CHIP_SYSCTL_CLOCK_T clk) |
Enable a system or peripheral clock. More... | |
STATIC INLINE uint32_t | Chip_Clock_GetIntOscRate (void) |
Returns the internal oscillator (IRC) clock rate. More... | |
uint32_t | Chip_Clock_GetMainClockRate (void) |
Return main clock rate. More... | |
STATIC INLINE CHIP_SYSCTL_MAINCLKSRC_T | Chip_Clock_GetMainClockSource (void) |
Returns the main clock source. More... | |
STATIC INLINE uint32_t | Chip_Clock_GetMainOscRate (void) |
Returns the main oscillator clock rate. More... | |
STATIC INLINE uint32_t | Chip_Clock_GetSSP0ClockDiv (void) |
Return SSP0 divider. More... | |
uint32_t | Chip_Clock_GetSystemClockRate (void) |
Return system clock rate. More... | |
uint32_t | Chip_Clock_GetSystemPLLInClockRate (void) |
Return System PLL input clock rate. More... | |
uint32_t | Chip_Clock_GetSystemPLLOutClockRate (void) |
Return System PLL output clock rate. More... | |
STATIC INLINE uint32_t | Chip_Clock_GetUARTClockDiv (void) |
Return UART divider. More... | |
uint32_t | Chip_Clock_GetWDTOSCRate (void) |
Return estimated watchdog oscillator rate. More... | |
STATIC INLINE bool | Chip_Clock_IsSystemPLLLocked (void) |
Read System PLL lock status. More... | |
void | Chip_Clock_SetCLKOUTSource (CHIP_SYSCTL_CLKOUTSRC_T src, uint32_t div) |
Set CLKOUT clock source and divider. More... | |
void | Chip_Clock_SetMainClockSource (CHIP_SYSCTL_MAINCLKSRC_T src) |
Set main system clock source. More... | |
void | Chip_Clock_SetPLLBypass (bool bypass, bool highfr) |
Bypass System Oscillator and set oscillator frequency range. More... | |
STATIC INLINE void | Chip_Clock_SetSSP0ClockDiv (uint32_t div) |
Set SSP0 divider. More... | |
STATIC INLINE void | Chip_Clock_SetSysClockDiv (uint32_t div) |
Set system clock divider. More... | |
void | Chip_Clock_SetSystemPLLSource (CHIP_SYSCTL_PLLCLKSRC_T src) |
Set System PLL clock source. More... | |
STATIC INLINE void | Chip_Clock_SetUARTClockDiv (uint32_t div) |
Set UART divider clock. More... | |
STATIC INLINE void | Chip_Clock_SetupSystemPLL (uint8_t msel, uint8_t psel) |
Set System PLL divider values. More... | |
STATIC INLINE void | Chip_Clock_SetWDTOSC (CHIP_WDTLFO_OSC_T wdtclk, uint8_t div) |
Setup Watchdog oscillator rate and divider. More... | |
#define SYSCTL_IRC_FREQ (12000000) |
Internal oscillator frequency
Definition at line 45 of file clock_11xx.h.
typedef enum CHIP_SYSCTL_CLKOUTSRC CHIP_SYSCTL_CLKOUTSRC_T |
Clock sources for CLKOUT
typedef enum CHIP_SYSCTL_CLOCK CHIP_SYSCTL_CLOCK_T |
System and peripheral clocks
typedef enum CHIP_SYSCTL_MAINCLKSRC CHIP_SYSCTL_MAINCLKSRC_T |
Clock sources for main system clock
typedef enum CHIP_SYSCTL_PLLCLKSRC CHIP_SYSCTL_PLLCLKSRC_T |
Clock sources for system and USB PLLs
typedef enum CHIP_WDTLFO_OSC CHIP_WDTLFO_OSC_T |
Watchdog and low frequency oscillator frequencies plus or minus 40%
Clock sources for CLKOUT
Definition at line 430 of file clock_11xx.h.
enum CHIP_SYSCTL_CLOCK |
System and peripheral clocks
Definition at line 228 of file clock_11xx.h.
Clock sources for main system clock
Definition at line 187 of file clock_11xx.h.
Clock sources for system and USB PLLs
Enumerator | |
---|---|
SYSCTL_PLLCLKSRC_IRC | Internal oscillator in |
SYSCTL_PLLCLKSRC_MAINOSC | Crystal (main) oscillator in |
SYSCTL_PLLCLKSRC_RESERVED1 | Reserved |
SYSCTL_PLLCLKSRC_RESERVED2 | Reserved |
Definition at line 71 of file clock_11xx.h.
enum CHIP_WDTLFO_OSC |
Watchdog and low frequency oscillator frequencies plus or minus 40%
Definition at line 138 of file clock_11xx.h.
STATIC INLINE void Chip_Clock_DisablePeriphClock | ( | CHIP_SYSCTL_CLOCK_T | clk | ) |
Disable a system or peripheral clock.
clk | : Clock to disable |
Definition at line 305 of file clock_11xx.h.
STATIC INLINE void Chip_Clock_EnablePeriphClock | ( | CHIP_SYSCTL_CLOCK_T | clk | ) |
Enable a system or peripheral clock.
clk | : Clock to enable |
Definition at line 295 of file clock_11xx.h.
Returns the internal oscillator (IRC) clock rate.
Definition at line 465 of file clock_11xx.h.
uint32_t Chip_Clock_GetMainClockRate | ( | void | ) |
STATIC INLINE CHIP_SYSCTL_MAINCLKSRC_T Chip_Clock_GetMainClockSource | ( | void | ) |
Returns the main clock source.
Definition at line 208 of file clock_11xx.h.
Returns the main oscillator clock rate.
Definition at line 456 of file clock_11xx.h.
Return SSP0 divider.
Definition at line 327 of file clock_11xx.h.
uint32_t Chip_Clock_GetSystemClockRate | ( | void | ) |
uint32_t Chip_Clock_GetSystemPLLInClockRate | ( | void | ) |
Return System PLL input clock rate.
Definition at line 183 of file clock_11xx.c.
uint32_t Chip_Clock_GetSystemPLLOutClockRate | ( | void | ) |
Return System PLL output clock rate.
Definition at line 210 of file clock_11xx.c.
Return UART divider.
Definition at line 349 of file clock_11xx.h.
uint32_t Chip_Clock_GetWDTOSCRate | ( | void | ) |
Return estimated watchdog oscillator rate.
Definition at line 168 of file clock_11xx.c.
Read System PLL lock status.
Definition at line 63 of file clock_11xx.h.
void Chip_Clock_SetCLKOUTSource | ( | CHIP_SYSCTL_CLKOUTSRC_T | src, |
uint32_t | div | ||
) |
Set CLKOUT clock source and divider.
src | : Clock source for CLKOUT |
div | : divider for CLKOUT clock |
Definition at line 157 of file clock_11xx.c.
void Chip_Clock_SetMainClockSource | ( | CHIP_SYSCTL_MAINCLKSRC_T | src | ) |
Set main system clock source.
src | : Clock source for main system |
Definition at line 124 of file clock_11xx.c.
void Chip_Clock_SetPLLBypass | ( | bool | bypass, |
bool | highfr | ||
) |
Bypass System Oscillator and set oscillator frequency range.
bypass | : Flag to bypass oscillator |
highfr | : Flag to set oscillator range from 15-25 MHz |
Definition at line 98 of file clock_11xx.c.
Set SSP0 divider.
div | : divider for SSP0 clock |
Definition at line 317 of file clock_11xx.h.
Set system clock divider.
div | : divider for system clock |
Definition at line 220 of file clock_11xx.h.
void Chip_Clock_SetSystemPLLSource | ( | CHIP_SYSCTL_PLLCLKSRC_T | src | ) |
Set System PLL clock source.
src | : Clock source for system PLL |
Definition at line 90 of file clock_11xx.c.
Set UART divider clock.
div | : divider for UART clock |
Definition at line 339 of file clock_11xx.h.
Set System PLL divider values.
msel | : PLL feedback divider value. M = msel + 1. |
psel | : PLL post divider value. P = (1<<psel). |
Definition at line 54 of file clock_11xx.h.
STATIC INLINE void Chip_Clock_SetWDTOSC | ( | CHIP_WDTLFO_OSC_T | wdtclk, |
uint8_t | div | ||
) |
Setup Watchdog oscillator rate and divider.
wdtclk | : Selected watchdog clock rate |
div | : Watchdog divider value, even value between 2 and 64 |
Definition at line 164 of file clock_11xx.h.