CPU (processor) component SetClockConfiguration(ConfigurationID) method is used to change active clock configuration. This method will switch to clock configuration defined by ConfigurationID passed as input parameter. The required configuration has to be predefined in the processor component, otherwise the method returns an error.
Clock configuration change is done during CPU SetClockConfiguration() method call in the following order:
Note that during the transition period glitches at the peripheral outputs may occur. Therefore, it is recommended to temporarily disable the peripherals before the clock configuration is switched to prevent any unpredictable behavior.