Exemplo n.º 1
0
/*******************************************************************************
* Function Name: PWM_4_Wakeup
********************************************************************************
*
* Summary:
*  Restores the user configuration and restores the enable state.
*
* Parameters:
*  None
*
* Return:
*  None
*
*******************************************************************************/
void PWM_4_Wakeup(void)
{
    PWM_4_RestoreConfig();

    if(0u != PWM_4_backup.enableState)
    {
        PWM_4_Enable();
    }
}
Exemplo n.º 2
0
/*******************************************************************************
* Function Name: PWM_4_Start
********************************************************************************
*
* Summary:
*  The start function initializes the pwm with the default values, the 
*  enables the counter to begin counting.  It does not enable interrupts,
*  the EnableInt command should be called if interrupt generation is required.
*
* Parameters:  
*  None  
*
* Return: 
*  None
*
* Global variables:
*  PWM_4_initVar: Is modified when this function is called for the 
*   first time. Is used to ensure that initialization happens only once.
*
*******************************************************************************/
void PWM_4_Start(void) 
{
    /* If not Initialized then initialize all required hardware and software */
    if(PWM_4_initVar == 0u)
    {
        PWM_4_Init();
        PWM_4_initVar = 1u;
    }
    PWM_4_Enable();

}