Macros | Typedefs | Functions | Variables
fsl_clock.c File Reference
#include "fsl_clock.h"
Include dependency graph for fsl_clock.c:

Go to the source code of this file.

Macros

#define FSL_COMPONENT_ID   "platform.drivers.clock"
 

Typedefs

typedef uint64_t clock_64b_t
 

Functions

void CLOCK_DeinitArmPll (void)
 De-initialize the ARM PLL. More...
 
void CLOCK_DeinitAudioPll (void)
 De-initialize the Audio PLL. More...
 
void CLOCK_DeinitEnetPll (void)
 Deinitialize the ENET PLL. More...
 
void CLOCK_DeinitExternalClk (void)
 Deinitialize the external 24MHz clock. More...
 
void CLOCK_DeinitRcOsc24M (void)
 Power down the RCOSC 24M clock. More...
 
void CLOCK_DeinitSysPfd (clock_pfd_t pfd)
 De-initialize the System PLL PFD. More...
 
void CLOCK_DeinitSysPll (void)
 De-initialize the System PLL. More...
 
void CLOCK_DeinitUsb1Pfd (clock_pfd_t pfd)
 De-initialize the USB1 PLL PFD. More...
 
void CLOCK_DeinitUsb1Pll (void)
 Deinitialize the USB1 PLL. More...
 
void CLOCK_DeinitUsb2Pll (void)
 Deinitialize the USB2 PLL. More...
 
void CLOCK_DeinitVideoPll (void)
 De-initialize the Video PLL. More...
 
void CLOCK_DisableUsbhs0PhyPllClock (void)
 Disable USB HS PHY PLL clock. More...
 
void CLOCK_DisableUsbhs1PhyPllClock (void)
 Disable USB HS PHY PLL clock. More...
 
bool CLOCK_EnableUsbhs0Clock (clock_usb_src_t src, uint32_t freq)
 Enable USB HS clock. More...
 
bool CLOCK_EnableUsbhs0PhyPllClock (clock_usb_phy_src_t src, uint32_t freq)
 Enable USB HS PHY PLL clock. More...
 
bool CLOCK_EnableUsbhs1Clock (clock_usb_src_t src, uint32_t freq)
 Enable USB HS clock. More...
 
bool CLOCK_EnableUsbhs1PhyPllClock (clock_usb_phy_src_t src, uint32_t freq)
 Enable USB HS PHY PLL clock. More...
 
uint32_t CLOCK_GetAhbFreq (void)
 Gets the AHB clock frequency. More...
 
uint32_t CLOCK_GetFreq (clock_name_t name)
 Gets the clock frequency for a specific clock name. More...
 
uint32_t CLOCK_GetIpgFreq (void)
 Gets the IPG clock frequency. More...
 
uint32_t CLOCK_GetPerClkFreq (void)
 Gets the PER clock frequency. More...
 
static uint32_t CLOCK_GetPeriphClkFreq (void)
 Get the periph clock frequency. More...
 
uint32_t CLOCK_GetPllFreq (clock_pll_t pll)
 Get current PLL output frequency. More...
 
uint32_t CLOCK_GetSemcFreq (void)
 Gets the SEMC clock frequency. More...
 
uint32_t CLOCK_GetSysPfdFreq (clock_pfd_t pfd)
 Get current System PLL PFD output frequency. More...
 
uint32_t CLOCK_GetUsb1PfdFreq (clock_pfd_t pfd)
 Get current USB1 PLL PFD output frequency. More...
 
void CLOCK_InitArmPll (const clock_arm_pll_config_t *config)
 Initialize the ARM PLL. More...
 
void CLOCK_InitAudioPll (const clock_audio_pll_config_t *config)
 Initializes the Audio PLL. More...
 
void CLOCK_InitEnetPll (const clock_enet_pll_config_t *config)
 Initialize the ENET PLL. More...
 
void CLOCK_InitExternalClk (bool bypassXtalOsc)
 Initialize the external 24MHz clock. More...
 
void CLOCK_InitRcOsc24M (void)
 Initialize the RC oscillator 24MHz clock. More...
 
void CLOCK_InitSysPfd (clock_pfd_t pfd, uint8_t pfdFrac)
 Initialize the System PLL PFD. More...
 
void CLOCK_InitSysPll (const clock_sys_pll_config_t *config)
 Initialize the System PLL. More...
 
void CLOCK_InitUsb1Pfd (clock_pfd_t pfd, uint8_t pfdFrac)
 Initialize the USB1 PLL PFD. More...
 
void CLOCK_InitUsb1Pll (const clock_usb_pll_config_t *config)
 Initialize the USB1 PLL. More...
 
void CLOCK_InitUsb2Pll (const clock_usb_pll_config_t *config)
 Initialize the USB2 PLL. More...
 
void CLOCK_InitVideoPll (const clock_video_pll_config_t *config)
 Initialize the video PLL. More...
 
void CLOCK_SwitchOsc (clock_osc_t osc)
 Switch the OSC. More...
 

Variables

volatile uint32_t g_rtcXtalFreq
 External RTC XTAL (32K OSC) clock frequency. More...
 
volatile uint32_t g_xtalFreq
 External XTAL (24M OSC/SYSOSC) clock frequency. More...
 

Macro Definition Documentation

◆ FSL_COMPONENT_ID

#define FSL_COMPONENT_ID   "platform.drivers.clock"

Definition at line 11 of file fsl_clock.c.

Typedef Documentation

◆ clock_64b_t

typedef uint64_t clock_64b_t

Definition at line 51 of file fsl_clock.c.

Function Documentation

◆ CLOCK_GetPeriphClkFreq()

static uint32_t CLOCK_GetPeriphClkFreq ( void  )
static

Get the periph clock frequency.

Returns
Periph clock frequency in Hz.

Definition at line 78 of file fsl_clock.c.



picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:57