asf/sam/drivers/pwm/pwm.c
void pwm_channel_update_dead_time(Pwm *p_pwm, pwm_channel_t *p_channel,
		uint16_t us_deadtime_pwmh, uint16_t us_deadtime_pwml)
{
	/* Save new dead time value */
	p_channel->us_deadtime_pwmh = us_deadtime_pwmh;
	p_channel->us_deadtime_pwml = us_deadtime_pwml;

	/* Write channel dead time update register */
	p_pwm->PWM_CH_NUM[p_channel->channel].PWM_DTUPD =
			PWM_DTUPD_DTLUPD(us_deadtime_pwml) |
			PWM_DTUPD_DTHUPD(us_deadtime_pwmh);
}
/**
 * \brief Change dead-time value for PWM outputs.
 *
 * \param p_pwm Pointer to a PWM instance.
 * \param p_channel Configurations of the specified PWM channel.
 * \param us_deadtime_pwmh New dead-time value for PWMH output.
 * \param us_deadtime_pwml New dead-time value for PWML output.
 */
\brief Change dead-time value for PWM outputs.
\param p_pwm Pointer to a PWM instance.
\param p_channel Configurations of the specified PWM channel.
\param us_deadtime_pwmh New dead-time value for PWMH output.
\param us_deadtime_pwml New dead-time value for PWML output.
\ brief Change dead - time value for PWM outputs . \ param p_pwm Pointer to a PWM instance . \ param p_channel Configurations of the specified PWM channel . \ param us_deadtime_pwmh New dead - time value for PWMH output . \ param us_deadtime_pwml New dead - time value for PWML output .
void pwm_channel_update_dead_time(Pwm *p_pwm, pwm_channel_t *p_channel,
		uint16_t us_deadtime_pwmh, uint16_t us_deadtime_pwml)
{
	p_channel->us_deadtime_pwmh = us_deadtime_pwmh;
	p_channel->us_deadtime_pwml = us_deadtime_pwml;
	p_pwm->PWM_CH_NUM[p_channel->channel].PWM_DTUPD =
			PWM_DTUPD_DTLUPD(us_deadtime_pwml) |
			PWM_DTUPD_DTHUPD(us_deadtime_pwmh);
}
void pwm_channel_update_dead_time ( Pwm * p_pwm , pwm_channel_t * p_channel , uint16_t us_deadtime_pwmh , uint16_t us_deadtime_pwml ) { p_channel -> us_deadtime_pwmh = us_deadtime_pwmh ; p_channel -> us_deadtime_pwml = us_deadtime_pwml ; p_pwm -> PWM_CH_NUM [ p_channel -> channel ] . PWM_DTUPD = PWM_DTUPD_DTLUPD ( us_deadtime_pwml ) | PWM_DTUPD_DTHUPD ( us_deadtime_pwmh ) ; }
\brief Change dead-time value for PWM outputs.
\ brief Change dead - time value for PWM outputs .
/* Save new dead time value */ /* Write channel dead time update register */