S32 SDK
clock_S32K144.c File Reference
#include "clock_S32K144.h"
#include "clock_manager.h"
#include "device_registers.h"
#include <stddef.h>

Go to the source code of this file.

Functions

static status_t CLOCK_SYS_GetScgClockFreq (clock_names_t clockName, uint32_t *frequency)
 
static status_t CLOCK_SYS_GetSimClockFreq (clock_names_t clockName, uint32_t *frequency)
 
static status_t CLOCK_SYS_GetPccClockFreq (clock_names_t clockName, uint32_t *frequency)
 
static uint32_t CLOCK_SYS_GetPeripheralClock (clock_names_t clockName, scg_async_clock_type_t divider)
 
static scg_system_clock_mode_t CLOCK_SYS_GetCurrentRunMode (const SMC_Type *smc_base)
 
static status_t CLOCK_SYS_TransitionSystemClock (const scg_system_clock_config_t *to_clk)
 
static uint32_t CLOCK_SYS_GetSimClkOutFreq (const SIM_Type *base)
 
static uint32_t CLOCK_SYS_GetScgClkOutFreq (const SCG_Type *base)
 
static uint32_t CLOCK_SYS_GetSimRtcClkFreq (const SIM_Type *base)
 
static status_t CLOCK_SYS_ConfigureTemporarySystemClock (void)
 
static status_t CLOCK_SYS_ConfigureModulesFromScg (const scg_config_t *scgConfig)
 
static status_t CLOCK_SYS_ConfigureSIRC (const scg_sirc_config_t *sircConfig)
 
static status_t CLOCK_SYS_ConfigureFIRC (const scg_firc_config_t *fircConfig)
 
static status_t CLOCK_SYS_ConfigureSOSC (const scg_sosc_config_t *soscConfig)
 
static status_t CLOCK_SYS_ConfigureSPLL (const scg_spll_config_t *spllConfig)
 
status_t CLOCK_SYS_SetConfiguration (clock_manager_user_config_t const *config)
 Set system clock configuration. More...
 
status_t CLOCK_SYS_SetScgConfiguration (const scg_config_t *scgConfig)
 Configures SCG module. More...
 
void CLOCK_SYS_SetPccConfiguration (const pcc_config_t *peripheralClockConfig)
 Configures PCC module. More...
 
void CLOCK_SYS_SetSimConfiguration (const sim_clock_config_t *simClockConfig)
 Configures SIM module. More...
 
void CLOCK_SYS_SetPmcConfiguration (const pmc_config_t *pmcConfig)
 Configures PMC module. More...
 
status_t CLOCK_SYS_GetFreq (clock_names_t clockName, uint32_t *frequency)
 Gets the clock frequency for a specific clock name. More...
 

Variables

uint32_t g_TClkFreq [NUMBER_OF_TCLK_INPUTS]
 
uint32_t g_RtcClkInFreq
 
uint32_t g_xtal0ClkFreq
 

Function Documentation

static status_t CLOCK_SYS_ConfigureFIRC ( const scg_firc_config_t fircConfig)
static

Definition at line 872 of file clock_S32K144.c.

static status_t CLOCK_SYS_ConfigureModulesFromScg ( const scg_config_t scgConfig)
static

Definition at line 1059 of file clock_S32K144.c.

static status_t CLOCK_SYS_ConfigureSIRC ( const scg_sirc_config_t sircConfig)
static

Definition at line 823 of file clock_S32K144.c.

static status_t CLOCK_SYS_ConfigureSOSC ( const scg_sosc_config_t soscConfig)
static

Definition at line 921 of file clock_S32K144.c.

static status_t CLOCK_SYS_ConfigureSPLL ( const scg_spll_config_t spllConfig)
static

Definition at line 969 of file clock_S32K144.c.

static status_t CLOCK_SYS_ConfigureTemporarySystemClock ( void  )
static

Definition at line 1019 of file clock_S32K144.c.

static scg_system_clock_mode_t CLOCK_SYS_GetCurrentRunMode ( const SMC_Type smc_base)
static

Definition at line 624 of file clock_S32K144.c.

static status_t CLOCK_SYS_GetPccClockFreq ( clock_names_t  clockName,
uint32_t *  frequency 
)
static

Definition at line 448 of file clock_S32K144.c.

static uint32_t CLOCK_SYS_GetPeripheralClock ( clock_names_t  clockName,
scg_async_clock_type_t  divider 
)
static

Definition at line 582 of file clock_S32K144.c.

static uint32_t CLOCK_SYS_GetScgClkOutFreq ( const SCG_Type base)
static

Definition at line 757 of file clock_S32K144.c.

static status_t CLOCK_SYS_GetScgClockFreq ( clock_names_t  clockName,
uint32_t *  frequency 
)
static

Definition at line 284 of file clock_S32K144.c.

static uint32_t CLOCK_SYS_GetSimClkOutFreq ( const SIM_Type base)
static

Definition at line 700 of file clock_S32K144.c.

static status_t CLOCK_SYS_GetSimClockFreq ( clock_names_t  clockName,
uint32_t *  frequency 
)
static

Definition at line 344 of file clock_S32K144.c.

static uint32_t CLOCK_SYS_GetSimRtcClkFreq ( const SIM_Type base)
static

Definition at line 791 of file clock_S32K144.c.

static status_t CLOCK_SYS_TransitionSystemClock ( const scg_system_clock_config_t to_clk)
static

Definition at line 657 of file clock_S32K144.c.