asf/sam/drivers/pwm/pwm.c
void pwm_channel_update_additional_edge(Pwm *p_pwm, pwm_channel_t *p_channel,
		uint32_t ul_additional_edge,
		pwm_additional_edge_mode_t additional_edge_mode)
{
	/* Save new additional edge value */
	p_channel->ul_additional_edge = ul_additional_edge;
	p_channel->additional_edge_mode = additional_edge_mode;

	/* Write channel additional edge update register */
	p_pwm->PWM_CH_NUM_0X400[p_channel->channel].PWM_CAEUPD =
			PWM_CAEUPD_ADEDGVUP(ul_additional_edge) | additional_edge_mode;
}
/**
 * \brief Change additional edge value and mode.
 *
 * \param p_pwm Pointer to a PWM instance.
 * \param p_channel Configurations of the specified PWM channel.
 * \param ul_additional_edge New additional edge value.
 * \param additional_edge_mode New additional edge mode.
 */
\brief Change additional edge value and mode.
\param p_pwm Pointer to a PWM instance.
\param p_channel Configurations of the specified PWM channel.
\param ul_additional_edge New additional edge value.
\param additional_edge_mode New additional edge mode.
\ brief Change additional edge value and mode . \ param p_pwm Pointer to a PWM instance . \ param p_channel Configurations of the specified PWM channel . \ param ul_additional_edge New additional edge value . \ param additional_edge_mode New additional edge mode .
void pwm_channel_update_additional_edge(Pwm *p_pwm, pwm_channel_t *p_channel,
		uint32_t ul_additional_edge,
		pwm_additional_edge_mode_t additional_edge_mode)
{
	p_channel->ul_additional_edge = ul_additional_edge;
	p_channel->additional_edge_mode = additional_edge_mode;
	p_pwm->PWM_CH_NUM_0X400[p_channel->channel].PWM_CAEUPD =
			PWM_CAEUPD_ADEDGVUP(ul_additional_edge) | additional_edge_mode;
}
void pwm_channel_update_additional_edge ( Pwm * p_pwm , pwm_channel_t * p_channel , uint32_t ul_additional_edge , pwm_additional_edge_mode_t additional_edge_mode ) { p_channel -> ul_additional_edge = ul_additional_edge ; p_channel -> additional_edge_mode = additional_edge_mode ; p_pwm -> PWM_CH_NUM_0X400 [ p_channel -> channel ] . PWM_CAEUPD = PWM_CAEUPD_ADEDGVUP ( ul_additional_edge ) | additional_edge_mode ; }
\brief Change additional edge value and mode.
\ brief Change additional edge value and mode .
/* Save new additional edge value */ /* Write channel additional edge update register */