/******************************************************************************* * Function Name: Timer_Wakeup ******************************************************************************** * * Summary: * Restores the user configuration and restores the enable state. * * Parameters: * None * * Return: * None * *******************************************************************************/ void Timer_Wakeup(void) { Timer_RestoreConfig(); if(0u != Timer_backup.enableState) { Timer_Enable(); } }
/******************************************************************************* * Function Name: Timer_Wakeup ******************************************************************************** * * Summary: * Restores and enables the user configuration * * Parameters: * void * * Return: * void * * Global variables: * Timer_backup.enableState: Is used to restore the enable state of * block on wakeup from sleep mode. * *******************************************************************************/ void Timer_Wakeup(void) { Timer_RestoreConfig(); #if(!Timer_UDB_CONTROL_REG_REMOVED) if(Timer_backup.TimerEnableState == 1u) { /* Enable Timer's operation */ Timer_Enable(); } /* Do nothing if Timer was disabled before */ #endif /* Remove this code section if Control register is removed */ }