Hi everybody!
In the KSDK_1.0.0 is a function CLOCK_SYS_SetSource(clock_source_names_t clockSource, uint8_t setting).
Whether there is in the library KSDK_1.3.0 of its equivalent ?
Thanks.
Hello Maksim,
How about the funciton of " CLOCK_SYS_SetConfiguration " :
/*FUNCTION**********************************************************************
*
* Function Name : CLOCK_SYS_SetConfiguration
* Description : This funtion sets the system to target configuration, it
* only sets the clock modules registers for clock mode change, but not send
* notifications to drivers.
*
*END**************************************************************************/
clock_manager_error_code_t CLOCK_SYS_SetConfiguration(clock_manager_user_config_t const* config)
{
assert(NULL != config);/* Set outdiv for safe output clock frequency. */
CLOCK_HAL_SetOutDiv(SIM, 0U, 1U, 2U, 4U);/* Set MCG mode. */
CLOCK_SYS_SetMcgMode(&config->mcgConfig);/* Set SIM setting. */
CLOCK_SYS_SetSimConfigration(&config->simConfig);/* Set OSCERCLK setting. */
CLOCK_SYS_SetOscerConfigration(0, &config->oscerConfig);
SystemCoreClock = CLOCK_SYS_GetCoreClockFreq();return kClockManagerSuccess;
}
Please use the latest version KSDKv1.3 or V2.0 . It fixed some bugs or features of old versions.
Hope it helps
Alice