Migration to KSDK_1.3.0

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Migration to KSDK_1.3.0

819件の閲覧回数
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.

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 返信

733件の閲覧回数
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 件の賞賛
返信