Functions

group group_sysclk_clk_lf_funcs

Functions

void Cy_SysClk_ClkLfSetSource(cy_en_clklf_in_sources_t source)

Sets the source for the low frequency clock(clkLf).

note

The watchdog timer (WDT) must be unlocked before calling this function.

Function Usage

    /* Scenario: LFCLK source needs to be updated to the ILO. */

    if(CY_SYSCLK_CLKLF_IN_ILO != Cy_SysClk_ClkLfGetSource())
    {
        Cy_SysClk_ClkLfSetSource(CY_SYSCLK_CLKLF_IN_ILO);
    }

Parameters

cy_en_clklf_in_sources_t Cy_SysClk_ClkLfGetSource(void)

Reports the source for the low frequency clock (clkLf).

Return

cy_en_clklf_in_sources_t

Function Usage

    /* Scenario: LFCLK source needs to be updated to the ILO. */

    if(CY_SYSCLK_CLKLF_IN_ILO != Cy_SysClk_ClkLfGetSource())
    {
        Cy_SysClk_ClkLfSetSource(CY_SYSCLK_CLKLF_IN_ILO);
    }