asf/sam/drivers/pwm/pwm.c
void pwm_cmp_enable_interrupt(Pwm *p_pwm, uint32_t ul_sources,
		pwm_cmp_interrupt_t type)
{
	if (type == PWM_CMP_MATCH) {
		p_pwm->PWM_IER2 = ((1 << ul_sources) << 8);
	} else if (type == PWM_CMP_UPDATE) {
		p_pwm->PWM_IER2 = ((1 << ul_sources) << 16);
	} else {
		/* Do Nothing */
	}
}
/**
 * \brief Enable the interrupt of comparison.
 *
 * \param p_pwm Pointer to a PWM instance.
 * \param ul_sources Bitmask of comparison unit.
 * \param type PWM_CMP_MATCH enables the match interrupt of the unit. PWM_CMP_UPDATE enables the update interrupt of the comparison unit.
 */
\brief Enable the interrupt of comparison.
\param p_pwm Pointer to a PWM instance.
\param ul_sources Bitmask of comparison unit.
\param type PWM_CMP_MATCH enables the match interrupt of the unit. PWM_CMP_UPDATE enables the update interrupt of the comparison unit.
\ brief Enable the interrupt of comparison . \ param p_pwm Pointer to a PWM instance . \ param ul_sources Bitmask of comparison unit . \ param type PWM_CMP_MATCH enables the match interrupt of the unit . PWM_CMP_UPDATE enables the update interrupt of the comparison unit .
void pwm_cmp_enable_interrupt(Pwm *p_pwm, uint32_t ul_sources,
		pwm_cmp_interrupt_t type)
{
	if (type == PWM_CMP_MATCH) {
		p_pwm->PWM_IER2 = ((1 << ul_sources) << 8);
	} else if (type == PWM_CMP_UPDATE) {
		p_pwm->PWM_IER2 = ((1 << ul_sources) << 16);
	} else {
	}
}
void pwm_cmp_enable_interrupt ( Pwm * p_pwm , uint32_t ul_sources , pwm_cmp_interrupt_t type ) { if ( type == PWM_CMP_MATCH ) { p_pwm -> PWM_IER2 = ( ( 1 << ul_sources ) << 8 ) ; } else if ( type == PWM_CMP_UPDATE ) { p_pwm -> PWM_IER2 = ( ( 1 << ul_sources ) << 16 ) ; } else { } }
\brief Enable the interrupt of comparison.
\ brief Enable the interrupt of comparison .
/* Do Nothing */