/* Recover HRC/MRC state and system clock after wake up stop mode.  */
static void PWC_ClockRecover(void)
/* Recover HRC/MRC state and system clock after wake up stop mode.  */
static void PWC_ClockRecover(void)
{
    DDL_ASSERT(IS_PWC_CLK_UNLOCKED());
    if (0U == READ_REG8_BIT(CM_PWC->STPMCR, PWC_STPMCR_CKSMRC)) {
        if ((PWC_SYSCLK_SRC_HRC == m_u8SysClockSource) || (PWC_SYSCLK_SRC_PLL == m_u8SysClockSource)) {
            PWC_SetSysClk(m_u8SysClockSource);
            WRITE_REG8(CM_CMU->MRCCR, m_u8MrcState);
        }
        WRITE_REG8(CM_CMU->HRCCR, m_u8HrcState);
    }
    SystemCoreClockUpdate();
}