Hello team,
I want to change the system clock source of my current running configuration. I just saw one API "CLOCK_DRV_SetSystemClock()"
I just want to know how to use this API and what is the use of it. And I just want to know the arguments I need to pass in this.
Thank you
Vinay
Hello danielmartynek,
Thank you for the reply, I am using S32K144_SDK 3.0 SDK
Hi @vinaykl,
You would need to define the two parameters in the code.
Their declaration can be found in clock_S32K1xx.h
You can use the CLOCK_DRV_GetSystemClockSource() and pass the defined struct there first to get the current clock source. Then change it and use it in CLOCK_DRV_SetSystemClock().
However, the SDK 3.0.0 Processor Expert allows creating more clock configurations.
The system clock can be updated using CLOCK_SYS_UpdateConfiguration().
Regards,
Daniel