/* Get Digital Core logic supply source to be used during Deep Sleep.  */
static void lf_get_deepsleep_core_supply_cfg(uint32_t exclude_from_pd, uint32_t *dcdc_voltage)
/* Get Digital Core logic supply source to be used during Deep Sleep.  */
static void lf_get_deepsleep_core_supply_cfg(uint32_t exclude_from_pd, uint32_t *dcdc_voltage)
{
    *dcdc_voltage = (uint32_t)V_DCDC_0P950;
    if (((exclude_from_pd & (uint32_t)kPDRUNCFG_PD_USB1_PHY) != 0UL) &&
        ((exclude_from_pd & (uint32_t)kPDRUNCFG_PD_LDOUSBHS) != 0UL))
    {
        PMC->MISCCTRL |= PMC_MISCCTRL_LOWPWR_FLASH_BUF_MASK;
        *dcdc_voltage =
            (uint32_t)V_DCDC_1P000;
    }
}