I need to switch between different Clock configurations during runtime in a S32K312-Q172 EVB.
The Various Clock Configurations were made using the S32 Design Studio Clock Functional Group Settings as shown below:
Any given Clock config can be initialized using the Clock_Ip_Init() function. My question is: can I switch between different Clock configurations using only Clock_Ip_Init()? There is no Clock_Ip_Deinit() function that will make sure that the previous clock config is de-activated.
yes, you can use "Clock_Ip_Init" to switch to differenct clock settings.
This API will first switch the MCU clock to a safe state, and then switch the clock configuration