Migration to KSDK_1.3.0

cancel
Showing results for 
Search instead for 
Did you mean: 

Migration to KSDK_1.3.0

177 Views
maksim_lipskiy
Contributor III

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.

Labels (1)
Tags (2)
0 Kudos
1 Reply

91 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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

0 Kudos