19 #if !defined (CLOCK_S32K1xx_H)
20 #define CLOCK_S32K1xx_H
60 #define NUMBER_OF_TCLK_INPUTS 3U
70 #define SYS_CLK_MAX_NO 3U
71 #define CORE_CLK_INDEX 0U
72 #define BUS_CLK_INDEX 1U
73 #define SLOW_CLK_INDEX 2U
115 #if defined (QuadSPI_INSTANCE_COUNT)
116 SIM_CLKOUT_SEL_SYSTEM_SFIF_CLK_HYP = 5U,
117 SIM_CLKOUT_SEL_SYSTEM_IPG_CLK = 11U,
118 SIM_CLKOUT_SEL_SYSTEM_IPG_CLK_SFIF = 13U,
119 SIM_CLKOUT_SEL_SYSTEM_IPG_CLK_2XSFIF = 15U
246 #if FEATURE_HAS_SPLL_CLK
247 SCG_SYSTEM_CLOCK_SRC_SYS_PLL = 6U,
587 #define CLK_SRC_OFF 0x00U
588 #define CLK_SRC_SOSC 0x01U
589 #define CLK_SRC_SIRC 0x02U
590 #define CLK_SRC_FIRC 0x03U
591 #define CLK_SRC_SPLL 0x06U
592 #define CLK_SRC_SOSC_DIV1 0x01U
593 #define CLK_SRC_SIRC_DIV1 0x02U
594 #define CLK_SRC_FIRC_DIV1 0x03U
595 #define CLK_SRC_SPLL_DIV1 0x06U
596 #define CLK_SRC_SOSC_DIV2 0x01U
597 #define CLK_SRC_SIRC_DIV2 0x02U
598 #define CLK_SRC_FIRC_DIV2 0x03U
599 #define CLK_SRC_SPLL_DIV2 0x06U
752 #if defined (__cplusplus)
823 #if defined (__cplusplus)
clock_trace_src_t
Debug trace clock source select Implements clock_trace_src_t_Class.
PCC peripheral instance clock configuration. Implements peripheral_clock_config_t_Class.
scg_sosc_range_t
SCG OSC frequency range select Implements scg_sosc_range_t_Class.
scg_async_clock_div_t
SCG asynchronous clock divider value.
SIM LPO Clocks configuration. Implements sim_lpo_clock_config_t_Class.
scg_async_clock_div_t div1
scg_async_clock_div_t div2
scg_async_clock_div_t div1
sim_tclk_config_t tclkConfig
SCG ClockOut Configuration structure. Implements scg_clockout_config_t_Class.
scg_async_clock_div_t div2
scg_rtc_config_t rtcConfig
Clock source configuration. Implements clock_source_config_t_Class.
sim_rtc_clk_sel_src_t
SIM CLK32KSEL clock source select Implements sim_rtc_clk_sel_src_t_Class.
sim_clkout_div_t
SIM CLKOUT divider.
scg_sosc_ext_ref_t
SCG OSC external reference clock select. Implements scg_sosc_ext_ref_t_Class.
sim_clkout_src_t
SIM CLKOUT select.
scg_sosc_monitor_mode_t
SCG system OSC monitor mode. Implements scg_sosc_monitor_mode_t_Class.
status_t CLOCK_DRV_Init(clock_manager_user_config_t const *config)
Initialize clocking modules.
SCG configure structure. Implements scg_config_t_Class.
scg_spll_clock_multiply_t
SCG system PLL multiplier.
sim_lpoclk_sel_src_t
SIM LPOCLKSEL clock source select Implements sim_lpoclk_sel_src_t_Class.
scg_system_clock_config_t vccrConfig
uint8_t peripheral_clock_source_t
PCC clock source select Implements peripheral_clock_source_t_Class.
scg_spll_monitor_mode_t monitorMode
scg_async_clock_div_t div2
peripheral_clock_source_t clkSrc
SIM QSPI reference clock gating. Implements sim_qspi_ref_clk_gating_t_Class.
SIM configure structure. Implements sim_clock_config_t_Class.
void CLOCK_DRV_SetModuleClock(clock_names_t clockName, const module_clk_config_t *moduleClkConfig)
Configures module clock.
SCG Clock Mode Configuration structure. Implements scg_clock_mode_config_t_Class. ...
#define SYS_CLK_MAX_NO
The maximum number of system clock dividers and system clock divider indexes.
scg_firc_config_t fircConfig
scg_sosc_config_t soscConfig
scg_sosc_ext_ref_t extRef
sim_trace_clock_config_t traceClockConfig
uint32_t g_RtcClkInFreq
RTC_CLKIN clock frequency.
sim_rtc_clk_sel_src_t sourceRtcClk
peripheral_clock_config_t * peripheralClocks
status_t CLOCK_DRV_SetSystemClock(const pwr_modes_t *mode, const sys_clk_config_t *sysClkConfig)
Configures the system clocks.
scg_sosc_gain_t
SCG OSC high gain oscillator select. Implements scg_sosc_gain_t_Class.
SCG system PLL configuration. Implements scg_spll_config_t_Class.
SCG slow IRC clock configuration. Implements scg_sirc_config_t_Class.
SCG fast IRC clock configuration. Implements scg_firc_config_t_Class.
sim_plat_gate_config_t platGateConfig
scg_clockout_config_t clockOutConfig
scg_system_clock_div_t
SCG system clock divider value. Implements scg_system_clock_div_t_Class.
scg_spll_config_t spllConfig
scg_clockout_src_t source
void CLOCK_DRV_GetSystemClockSource(sys_clk_config_t *sysClkConfig)
Gets the system clock source.
scg_clock_mode_config_t clockModeConfig
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
scg_sirc_range_t
SCG slow IRC clock frequency range. Implements scg_sirc_range_t_Class.
scg_sirc_config_t sircConfig
SCG RTC configuration. Implements scg_rtc_config_t_Class.
pmc_lpo_clock_config_t lpoClockConfig
scg_async_clock_div_t div1
SCG system clock configuration. Implements scg_system_clock_config_t_Class.
peripheral_clock_frac_t
PCC fractional value select Implements peripheral_clock_frac_t_Class.
sim_clock_config_t simConfig
scg_system_clock_div_t divCore
module clock configuration. Implements module_clk_config_t_Class
scg_async_clock_div_t div2
scg_system_clock_div_t divSlow
sim_clock_out_config_t clockOutConfig
scg_spll_monitor_mode_t
SCG system PLL monitor mode. Implements scg_spll_monitor_mode_t_Class.
#define NUMBER_OF_TCLK_INPUTS
TClk clock frequency.
xosc_ref_t
XOSC reference clock select (internal oscillator is bypassed or not) Implements xosc_ref_t_Class.
status_t CLOCK_DRV_SetClockSource(clock_names_t clockName, const clock_source_config_t *clkSrcConfig)
This function configures a clock source.
scg_async_clock_div_t div1
SIM Platform Gate Clock configuration. Implements sim_plat_gate_config_t_Class.
sim_qspi_ref_clk_gating_t qspiRefClkGating
scg_sosc_monitor_mode_t monitorMode
pwr_modes_t
Power mode. Implements pwr_modes_t_Class.
SIM ClockOut configuration. Implements sim_clock_out_config_t_Class.
peripheral_clock_divider_t divider
scg_spll_clock_prediv_t
SCG system PLL predivider.
SCG system OSC configuration. Implements scg_sosc_config_t_Class.
scg_firc_range_t
SCG fast IRC clock frequency range. Implements scg_firc_range_t_Class.
sim_lpo_clock_config_t lpoClockConfig
sim_lpoclk_sel_src_t sourceLpoClk
uint32_t g_xtal0ClkFreq
EXTAL0 clock frequency.
scg_system_clock_src_t
SCG system clock source. Implements scg_system_clock_src_t_Class.
const uint8_t peripheralFeaturesList[CLOCK_NAME_COUNT]
Peripheral features list Constant array storing the mappings between clock names of the peripherals a...
scg_clockout_src_t
SCG ClockOut type. Implements scg_clockout_src_t_Class.
peripheral_clock_divider_t
PCC divider value select Implements peripheral_clock_divider_t_Class.
scg_system_clock_config_t rccrConfig
clock_names_t
Clock names.
scg_system_clock_src_t src
scg_system_clock_src_t alternateClock
status_t CLOCK_DRV_GetFreq(clock_names_t clockName, uint32_t *frequency)
Return frequency.
Clock configuration structure. Implements clock_manager_user_config_t_Class.
SIM Platform Gate Clock configuration. Implements sim_tclk_config_t_Class.
peripheral_clock_frac_t frac
scg_system_clock_config_t hccrConfig
scg_system_clock_div_t divBus
SIM Debug Trace clock configuration. Implements sim_trace_clock_config_t_Class.
System clock configuration. Implements sys_clk_config_t_Class.
PCC configuration. Implements pcc_config_t_Class.