19 #if !defined(CLOCK_MANAGER_H)
20 #define CLOCK_MANAGER_H
28 #if (defined(S32K14x_SERIES))
30 #include "../src/clock/S32K1xx/clock_S32K1xx.h"
31 #elif (defined(S32V234_SERIES))
33 #include "../src/clock/S32V234/clock_S32V234.h"
34 #elif (defined(MPC574x_SERIES))
36 #include "../src/clock/MPC57xx/clock_MPC57xx.h"
38 #error "No valid CPU defined!"
75 #if (defined(S32K14x_SERIES))
80 #elif (defined(S32V234_SERIES))
81 cgm_config_t cgmConfig;
163 #if defined(__cplusplus)
186 uint8_t configsNumber,
188 uint8_t callbacksNumber);
269 uint32_t *frequency);
274 #if defined(__cplusplus)
Clock manager state structure. Implements clock_manager_state_t_Class.
status_t CLOCK_SYS_UpdateConfiguration(uint8_t targetConfigIndex, clock_manager_policy_t policy)
Set system clock configuration according to pre-defined structure.
clock_manager_callback_user_config_t ** callbackConfig
clock_manager_user_config_t const ** configTable
SCG configure structure. Implements scg_config_t_Class.
clock_manager_policy_t policy
SIM configure structure. Implements sim_clock_config_t_Class.
clock_manager_policy_t
Clock transition policy. Implements clock_manager_policy_t_Class.
cgmcs_config_t cgmcsConfig
mc_me_config_t mcmeConfig
Structure for callback function and its parameter. Implements clock_manager_callback_user_config_t_Cl...
clock_names_t
Clock names.
status_t CLOCK_SYS_SetConfiguration(clock_manager_user_config_t const *config)
Set system clock configuration.
clock_manager_callback_t callback
status_t CLOCK_SYS_GetFreq(clock_names_t clockName, uint32_t *frequency)
Gets the clock frequency for a specific clock name.
uint8_t CLOCK_SYS_GetCurrentConfiguration(void)
Get current system clock configuration.
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
status_t CLOCK_SYS_Init(clock_manager_user_config_t const **clockConfigsPtr, uint8_t configsNumber, clock_manager_callback_user_config_t **callbacksPtr, uint8_t callbacksNumber)
Install pre-defined clock configurations.
clock_manager_callback_type_t callbackType
uint8_t targetClockConfigIndex
clock_manager_notify_t
The clock notification type. Implements clock_manager_notify_t_Class.
uint8_t errorCallbackIndex
clock_manager_notify_t notifyType
clock_manager_callback_type_t
The callback type, indicates what kinds of notification this callback handles. Implements clock_manag...
Clock configuration structure. Implements clock_manager_user_config_t_Class.
Clock notification structure passed to clock callback function. Implements clock_notify_struct_t_Clas...
clock_manager_callback_user_config_t * CLOCK_SYS_GetErrorCallback(void)
Get the callback which returns error in last clock switch.
status_t(* clock_manager_callback_t)(clock_notify_struct_t *notify, void *callbackData)
Type of clock callback functions.
PCC configuration. Implements pcc_config_t_Class.