58 uint8_t configsNumber,
60 uint8_t callbacksNumber)
94 bool successfulSetConfig;
102 notifyStruct.
policy = policy;
113 for (callbackIdx=0; callbackIdx<g_clockState.
callbackNum; callbackIdx++)
116 if ((callbackConfig) &&
120 (*callbackConfig->
callback)(¬ifyStruct,
148 successfulSetConfig =
false;
151 if(successfulSetConfig){
154 for (callbackIdx=0; callbackIdx<g_clockState.
callbackNum; callbackIdx++)
157 if ((callbackConfig) &&
161 (*callbackConfig->
callback)(¬ifyStruct,
182 if (callbackConfig != NULL)
184 (void)(*callbackConfig->
callback)(¬ifyStruct,
187 if(callbackIdx == 0U)
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.
static clock_manager_state_t g_clockState
void INT_SYS_DisableIRQGlobal(void)
Disable system interrupt.
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
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
void INT_SYS_EnableIRQGlobal(void)
Enables system interrupt.
uint8_t targetClockConfigIndex
uint8_t errorCallbackIndex
clock_manager_notify_t notifyType
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.