/* Registers a power management callback that prepares the clock system for entering deep sleep mode and restore the clocks upon wakeup from deep sleep. NOTE: This is called automatically as part of cybsp_init  */
static cy_rslt_t cybsp_register_sysclk_pm_callback(void)
/* Registers a power management callback that prepares the clock system for entering deep sleep mode and restore the clocks upon wakeup from deep sleep. NOTE: This is called automatically as part of cybsp_init  */
static cy_rslt_t cybsp_register_sysclk_pm_callback(void)
{
    cy_rslt_t result = CY_RSLT_SUCCESS;
    static cy_stc_syspm_callback_params_t cybsp_sysclk_pm_callback_param = {NULL, NULL};
    static cy_stc_syspm_callback_t cybsp_sysclk_pm_callback = {
        .callback = &Cy_SysClk_DeepSleepCallback,
        .type = CY_SYSPM_DEEPSLEEP,
        .callbackParams = &cybsp_sysclk_pm_callback_param,
        .order = CYBSP_SYSCLK_PM_CALLBACK_ORDER
    };
    if (!Cy_SysPm_RegisterCallback(&cybsp_sysclk_pm_callback))
    {
        result = CYBSP_RSLT_ERR_SYSCLK_PM_CALLBACK;
    }
    return result;
}