Functions

group group_sysclk_clk_bak_funcs

Functions

void Cy_SysClk_ClkBakSetSource(cy_en_clkbak_in_sources_t source)

Sets the source for the backup domain clock (clk_bak).

note

clkLf is not available in all power modes. For this reason, WCO is the preferred source. If the WCO is routed through the clkLf multiplexer (see Cy_SysClk_ClkLfSetSource), select WCO directly - do not select clkLf.

Function Usage

    /* Scenario: Backup clock source needs to be updated to the WCO. */

    if(CY_SYSCLK_BAK_IN_WCO != Cy_SysClk_ClkBakGetSource())
    {
        Cy_SysClk_ClkBakSetSource(CY_SYSCLK_BAK_IN_WCO);
    }

Parameters

cy_en_clkbak_in_sources_t Cy_SysClk_ClkBakGetSource(void)

Reports the source for the backup domain clock (clk_bak).

Return

cy_en_clkbak_in_sources_t

Function Usage

    /* Scenario: Backup clock source needs to be updated to the WCO. */

    if(CY_SYSCLK_BAK_IN_WCO != Cy_SysClk_ClkBakGetSource())
    {
        Cy_SysClk_ClkBakSetSource(CY_SYSCLK_BAK_IN_WCO);
    }