/* Shut off the Flash and execute the _WFI(), then power up the Flash after wake-up event.  */
void POWER_CycleCpuAndFlash(void)
/* Shut off the Flash and execute the _WFI(), then power up the Flash after wake-up event.  */
void POWER_CycleCpuAndFlash(void)
{
    lowpower_driver_interface_t *s_lowpowerDriver;
    if (0UL == Chip_GetVersion())
    {
        s_lowpowerDriver = (lowpower_driver_interface_t *)(0x130010d4UL);
    }
    else
    {
        s_lowpowerDriver = (lowpower_driver_interface_t *)(0x13001204UL);
    }
    (*(s_lowpowerDriver->power_cycle_cpu_and_flash))();
}