19 #if !defined(CLOCK_MANAGER_H)
20 #define CLOCK_MANAGER_H
28 #if (defined(S32K14x_SERIES) || defined(S32K11x_SERIES))
30 #include "../src/clock/S32K1xx/clock_S32K1xx.h"
31 #elif (defined(S32MTV_SERIES))
33 #include "../src/clock/S32Mxx/clock_S32Mxx.h"
34 #elif (defined(S32V234_SERIES))
36 #include "../src/clock/S32V234/clock_S32V234.h"
37 #elif (defined(MPC5777C_SERIES))
39 #include "../src/clock/MPC57xx/clock_MPC57xx.h"
40 #elif (defined(MPC574x_SERIES))
42 #include "../src/clock/MPC57xx/clock_MPC57xx.h"
43 #elif (defined(S32S247_SERIES))
45 #include "../src/clock/S32Sxx/clock_S32Sxx.h"
46 #elif (defined(SJA1110_SERIES))
48 #include "../src/clock/SJA11xx/clock_SJA11xx.h"
50 #error "No valid CPU defined!"
151 #if defined(__cplusplus)
178 uint8_t configsNumber,
180 uint8_t callbacksNumber);
262 uint32_t *frequency);
267 #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
clock_manager_policy_t policy
clock_manager_policy_t
Clock transition policy. Implements clock_manager_policy_t_Class.
Structure for callback function and its parameter. Implements clock_manager_callback_user_config_t_Cl...
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_names_t
Clock names.
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.