Пример #1
0
/*******************************************************************************
* Function Name: Timer_2_Wakeup
********************************************************************************
*
* Summary:
*  Restores the user configuration and restores the enable state.
*
* Parameters:
*  None
*
* Return:
*  None
*
*******************************************************************************/
void Timer_2_Wakeup(void)
{
    Timer_2_RestoreConfig();

    if(0u != Timer_2_backup.enableState)
    {
        Timer_2_Enable();
    }
}
Пример #2
0
/*******************************************************************************
* Function Name: Timer_2_Wakeup
********************************************************************************
*
* Summary:
*  Restores and enables the user configuration
*
* Parameters:
*  void
*
* Return:
*  void
*
* Global variables:
*  Timer_2_backup.enableState:  Is used to restore the enable state of
*  block on wakeup from sleep mode.
*
*******************************************************************************/
void Timer_2_Wakeup(void) 
{
    Timer_2_RestoreConfig();
    #if(!Timer_2_ControlRegRemoved)
        if(Timer_2_backup.TimerEnableState == 1u)
        {     /* Enable Timer's operation */
                Timer_2_Enable();
        } /* Do nothing if Timer was disabled before */
    #endif /* Remove this code section if Control register is removed */
}