/******************************************************************************* * Function Name: Timer_3_Wakeup ******************************************************************************** * * Summary: * Restores the user configuration and restores the enable state. * * Parameters: * None * * Return: * None * *******************************************************************************/ void Timer_3_Wakeup(void) { Timer_3_RestoreConfig(); if(0u != Timer_3_backup.enableState) { Timer_3_Enable(); } }
/******************************************************************************* * Function Name: Timer_3_Start ******************************************************************************** * * Summary: * The start function initializes the timer with the default values, the * enables the timerto begin counting. It does not enable interrupts, * the EnableInt command should be called if interrupt generation is required. * * Parameters: * void * * Return: * void * * Global variables: * Timer_3_initVar: Is modified when this function is called for the * first time. Is used to ensure that initialization happens only once. * *******************************************************************************/ void Timer_3_Start(void) { if(Timer_3_initVar == 0u) { Timer_3_Init(); Timer_3_initVar = 1u; /* Clear this bit for Initialization */ } /* Enable the Timer */ Timer_3_Enable(); }