46 #include "sw/modules/types/src/types.h"
69 #define PLL_BASE_ADDR (0x00007011)
74 #define PLL_PLLCR_DIV_BITS (15 << 0)
79 #define PLL_PLLSTS_PLLLOCKS_BITS (1 << 0)
83 #define PLL_PLLSTS_PLLOFF_BITS (1 << 2)
87 #define PLL_PLLSTS_MCLKSTS_BITS (1 << 3)
91 #define PLL_PLLSTS_MCLKCLR_BITS (1 << 4)
95 #define PLL_PLLSTS_OSCOFF_BITS (1 << 5)
99 #define PLL_PLLSTS_MCLKOFF_BITS (1 << 6)
103 #define PLL_PLLSTS_DIVSEL_BITS (3 << 7)
107 #define PLL_PLLSTS_NORMRDYE_BITS (1 << 15)
259 extern PLL_Handle
PLL_init(
void *pMemory,
const size_t numBytes);
290 #endif // end of _PLL_H_ definition
void PLL_disableClkDetect(PLL_Handle pllHandle)
Disables the clock detect logic.
Denotes a clock frequency of 60 MHz.
Denotes a clock frequency of 40 MHz.
struct _PLL_Obj_ PLL_Obj
Defines the phase lock loop (PLL) object.
void PLL_enable(PLL_Handle pllHandle)
Enables the phase lock loop (PLL)
volatile uint16_t PLLSTS
PLL Status Register.
Denotes a clock frequency of 30 MHz.
Denotes a clock frequency of 70 MHz.
Denotes a clock frequency of 10 MHz.
PLL_LockStatus_e PLL_getLockStatus(PLL_Handle pllHandle)
Gets the phase lock loop (PLL) lock status.
void PLL_disableNormRdy(PLL_Handle pllHandle)
Disables the NORMRDY signal.
PLL_ClkStatus_e PLL_getClkStatus(PLL_Handle pllHandle)
Gets the phase lock loop (PLL) clock status.
Denotes a clock frequency of 90 MHz.
void PLL_disable(PLL_Handle pllHandle)
Disables the phase lock loop (PLL)
Denotes a clock frequency of 80 MHz.
Denotes a divide select of CLKIN/1.
void PLL_setDivideSelect(PLL_Handle pllHandle, const PLL_DivideSelect_e divSelect)
Sets the phase lock loop (PLL) divide select value.
PLL_ClkFreq_e PLL_getClkFreq(PLL_Handle pllHandle)
Gets the phase lock loop (PLL) clock frequency.
Denotes a clock frequency of 50 MHz.
Denotes a clock frequency of 85 MHz.
void PLL_disableOsc(PLL_Handle pllHandle)
Disables the oscillator.
Denotes a clock frequency of 65 MHz.
void PLL_enableNormRdy(PLL_Handle pllHandle)
Enables the NORMRDY signal.
struct _PLL_Obj_ * PLL_Handle
Defines the phase lock loop (PLL) handle.
Denotes a clock frequency of 45 MHz.
void PLL_enableClkDetect(PLL_Handle pllHandle)
Enables the clock detect logic.
Denotes a clock frequency of 25 MHz.
Defines the phase lock loop (PLL) object.
Denotes a divide select of CLKIN/4.
void PLL_setClkFreq(PLL_Handle pllHandle, const PLL_ClkFreq_e freq)
Sets the phase lock loop (PLL) clock frequency.
volatile uint16_t rsvd_2[13]
Reserved.
Denotes that the system is locking to the clock.
Denotes a clock frequency of 5 MHz.
PLL_ClkFreq_e
Enumeration to define the phase lock loop (PLL) clock frequency.
Denotes a clock frequency of 75 MHz.
Contains public interface to various functions related to the central processing unit (CPU) object...
PLL_DivideSelect_e
Enumeration to define the phase lock loop (PLL) divide select.
Denotes a clock frequency of 35 MHz.
PLL_DivideSelect_e PLL_getDivideSelect(PLL_Handle pllHandle)
Gets the phase lock loop (PLL) divide select value.
void PLL_setLockPeriod(PLL_Handle pllHandle, const uint16_t lockPeriod)
Sets the phase lock loop (PLL) lock time.
volatile uint16_t PLLLOCKPRD
PLL Lock Period Register.
PLL_Handle PLL_init(void *pMemory, const size_t numBytes)
Initializes the phase lock loop (PLL) object handle.
Denotes a clock frequency of 20 MHz.
volatile uint16_t rsvd_1
Reserved.
Denotes that the system is locked to the clock.
volatile uint16_t PLLCR
PLL Control Register.
Denotes a divide select of CLKIN/2.
void PLL_resetClkDetect(PLL_Handle pllHandle)
Resets the phase lock loop (PLL) clock detect logic.
PLL_LockStatus_e
Enumeration to define the phase lock loop (PLL) clock lock status.
PLL_ClkStatus_e
Enumeration to define the phase lock loop (PLL) clock status.
Denotes a clock frequency of 55 MHz.
Denotes a clock frequency of 15 MHz.
void PLL_enableOsc(PLL_Handle pllHandle)
Enables the oscillator.