SAM4SD32 (SAM4S-EK2)
Loading...
Searching...
No Matches
pwm.h File Reference

Pulse Width Modulation (PWM) driver for SAM. More...

#include "compiler.h"

Go to the source code of this file.

Data Structures

struct  pwm_channel_t
 Input parameters when configuring a PWM channel mode. More...
struct  pwm_clock_t
 Input parameters when initializing PWM. More...
struct  pwm_cmp_t
 Configurations of PWM comparison. More...
struct  pwm_fault_t
 Configuration of PWM fault input behaviors. More...
struct  pwm_output_t
 Configurations of a PWM channel output. More...
struct  pwm_protect_t
 Structure of PWM write-protect information. More...

Macros

#define PWM_INVALID_ARGUMENT   0xFFFF

Typedefs

typedef enum _pwm_ch_t pwm_ch_t
 Definitions for PWM channel number.

Enumerations

enum  _pwm_ch_t {
  PWM_CHANNEL_0 = 0 ,
  PWM_CHANNEL_1 = 1 ,
  PWM_CHANNEL_2 = 2 ,
  PWM_CHANNEL_3 = 3
}
 Definitions for PWM channel number. More...
enum  pmc_cmp_unit_t {
  PWM_CMP_UNIT_0 = 0 ,
  PWM_CMP_UNIT_1 = 1 ,
  PWM_CMP_UNIT_2 = 2 ,
  PWM_CMP_UNIT_3 = 3 ,
  PWM_CMP_UNIT_4 = 4 ,
  PWM_CMP_UNIT_5 = 5 ,
  PWM_CMP_UNIT_6 = 6 ,
  PWM_CMP_UNIT_7 = 7
}
 Definitions for PWM comparison unit. More...
enum  pwm_align_t {
  PWM_ALIGN_LEFT = (0 << 8) ,
  PWM_ALIGN_CENTER = (1 << 8)
}
 Definitions for PWM channel alignment. More...
enum  pwm_cmp_interrupt_t {
  PWM_CMP_MATCH = 8 ,
  PWM_CMP_UPDATE = 16
}
 Definitions for PWM comparison interrupt. More...
enum  pwm_counter_event_t {
  PWM_EVENT_PERIOD_END = (0 << 10) ,
  PWM_EVENT_PERIOD_HALF_END = (1 << 10)
}
 Definitions for PWM event. More...
enum  pwm_fault_id_t {
  PWM_FAULT_PWMFI0 = (1 << 0) ,
  PWM_FAULT_MAINOSC = (1 << 1) ,
  PWM_FAULT_ADC = (1 << 2) ,
  PWM_FAULT_ACC = (1 << 3) ,
  PWM_FAULT_TIMER_0 = (1 << 4) ,
  PWM_FAULT_TIMER_1 = (1 << 5)
}
 Definitions for PWM fault input ID. More...
enum  pwm_level_t {
  PWM_LOW = LOW ,
  PWM_HIGH = HIGH
}
 Definitions for PWM level. More...
enum  pwm_pdc_interrupt_t {
  PWM_PDC_TX_END = (1 << 1) ,
  PWM_PDC_TX_EMPTY = (1 << 2)
}
 Definitions for PWM PDC transfer interrupt. More...
enum  pwm_pdc_request_mode_t {
  PWM_PDC_UPDATE_PERIOD_ELAPSED = (0 << 20) ,
  PWM_PDC_COMPARISON_MATCH = (1 << 20)
}
 Definitions for PWM PDC transfer request mode. More...
enum  pwm_protect_reg_group_t {
  PWM_GROUP_CLOCK = (1 << 0) ,
  PWM_GROUP_DISABLE = (1 << 1) ,
  PWM_GROUP_MODE = (1 << 2) ,
  PWM_GROUP_PERIOD = (1 << 3) ,
  PWM_GROUP_DEAD_TIME = (1 << 4) ,
  PWM_GROUP_FAULT = (1 << 5)
}
 Definitions of PWM register group. More...
enum  pwm_stepper_motor_pair_t {
  PWM_STEPPER_MOTOR_CH_0_1 = 0 ,
  PWM_STEPPER_MOTOR_CH_2_3 = 1
}
 Definitions for PWM channels used by motor stepper. More...
enum  pwm_sync_interrupt_t {
  PWM_SYNC_WRITE_READY = (1 << 0) ,
  PWM_SYNC_UNDERRUN = (1 << 3)
}
 Definitions for PWM synchronous channels interrupt. More...
enum  pwm_sync_update_mode_t {
  PWM_SYNC_UPDATE_MODE_0 = PWM_SCM_UPDM_MODE0 ,
  PWM_SYNC_UPDATE_MODE_1 = PWM_SCM_UPDM_MODE1 ,
  PWM_SYNC_UPDATE_MODE_2 = PWM_SCM_UPDM_MODE2
}
 Definitions for PWM synchronous channels update mode. More...

Functions

void pwm_channel_disable (Pwm *p_pwm, uint32_t ul_channel)
 Disable the PWM channel.
void pwm_channel_disable_interrupt (Pwm *p_pwm, uint32_t ul_event, uint32_t ul_fault)
 Disable the interrupt of a channel counter event and fault protection.
void pwm_channel_enable (Pwm *p_pwm, uint32_t ul_channel)
 Enable the PWM channel.
void pwm_channel_enable_interrupt (Pwm *p_pwm, uint32_t ul_event, uint32_t ul_fault)
 Enable the interrupt of a channel counter event and fault protection.
uint32_t pwm_channel_get_counter (Pwm *p_pwm, pwm_channel_t *p_channel)
 Return channel counter value.
uint32_t pwm_channel_get_interrupt_mask (Pwm *p_pwm)
 Get channel counter event and fault protection trigger interrupt mask.
uint32_t pwm_channel_get_interrupt_status (Pwm *p_pwm)
 Get channel counter event and fault protection trigger interrupt status.
uint32_t pwm_channel_get_status (Pwm *p_pwm)
 Check which PWM channel is enabled.
uint32_t pwm_channel_init (Pwm *p_pwm, pwm_channel_t *p_channel)
 Initialize one PWM channel.
void pwm_channel_update_dead_time (Pwm *p_pwm, pwm_channel_t *p_channel, uint16_t us_deadtime_pwmh, uint16_t us_deadtime_pwml)
 Change dead-time value for PWM outputs.
uint32_t pwm_channel_update_duty (Pwm *p_pwm, pwm_channel_t *p_channel, uint32_t ul_duty)
 Change the duty cycle of the PWM channel.
void pwm_channel_update_output (Pwm *p_pwm, pwm_channel_t *p_channel, pwm_output_t *p_output, bool b_sync)
 Change output selection of the PWM channel.
uint32_t pwm_channel_update_period (Pwm *p_pwm, pwm_channel_t *p_channel, uint32_t ul_period)
 Change the period of the PWM channel.
uint32_t pwm_cmp_change_setting (Pwm *p_pwm, pwm_cmp_t *p_cmp)
 Change the setting of PWM comparison.
void pwm_cmp_disable_interrupt (Pwm *p_pwm, uint32_t ul_sources, pwm_cmp_interrupt_t type)
 Disable the interrupt of comparison.
void pwm_cmp_enable_interrupt (Pwm *p_pwm, uint32_t ul_sources, pwm_cmp_interrupt_t type)
 Enable the interrupt of comparison.
uint32_t pwm_cmp_get_period_counter (Pwm *p_pwm, uint32_t ul_cmp_unit)
 Report the value of the comparison period counter.
uint32_t pwm_cmp_get_update_counter (Pwm *p_pwm, uint32_t ul_cmp_unit)
 Report the value of the comparison update period counter.
uint32_t pwm_cmp_init (Pwm *p_pwm, pwm_cmp_t *p_cmp)
 Initialize PWM comparison unit.
void pwm_disable_protect (Pwm *p_pwm, uint32_t ul_group)
 Disable PWM write protect.
void pwm_enable_protect (Pwm *p_pwm, uint32_t ul_group, bool b_sw)
 Enable PWM write protect.
void pwm_fault_clear_status (Pwm *p_pwm, pwm_fault_id_t id)
 Clear a fault input.
pwm_level_t pwm_fault_get_input_level (Pwm *p_pwm, pwm_fault_id_t id)
 Get the level of a fault input.
uint32_t pwm_fault_get_status (Pwm *p_pwm)
 Get fault status.
uint32_t pwm_fault_init (Pwm *p_pwm, pwm_fault_t *p_fault)
 Initialize the behavior of a fault input.
uint32_t pwm_get_interrupt_mask (Pwm *p_pwm)
 Get interrupt mask of PDC transfer, synchronous channels and comparison.
uint32_t pwm_get_interrupt_status (Pwm *p_pwm)
 Get interrupt status of PDC transfer, synchronous channels and comparison.
bool pwm_get_protect_status (Pwm *p_pwm, pwm_protect_t *p_protect)
 Get PWM write protect status.
uint32_t pwm_init (Pwm *p_pwm, pwm_clock_t *clock_config)
 Initialize the PWM source clock (clock A and clock B).
void pwm_pdc_disable_interrupt (Pwm *p_pwm, uint32_t ul_sources)
 Disable the interrupt of PDC transfer.
void pwm_pdc_enable_interrupt (Pwm *p_pwm, uint32_t ul_sources)
 Enable the interrupt of PDC transfer.
void pwm_pdc_set_request_mode (Pwm *p_pwm, pwm_pdc_request_mode_t request_mode, uint32_t ul_cmp_unit)
 Set PDC transfer request mode.
void pwm_stepper_motor_init (Pwm *p_pwm, pwm_stepper_motor_pair_t pair, bool b_enable_gray, bool b_down)
 Initialize PWM stepper motor mode.
void pwm_sync_change_period (Pwm *p_pwm, uint32_t ul_update_period)
 Change the wanted time between each update of the synchronous channels.
void pwm_sync_disable_interrupt (Pwm *p_pwm, uint32_t ul_sources)
 Disable the interrupt of synchronous channels.
void pwm_sync_enable_interrupt (Pwm *p_pwm, uint32_t ul_sources)
 Enable the interrupt of synchronous channel.
uint32_t pwm_sync_get_period_counter (Pwm *p_pwm)
 Get the value of the synchronization update period counter.
uint32_t pwm_sync_init (Pwm *p_pwm, pwm_sync_update_mode_t mode, uint32_t ul_update_period)
 Initialize synchronous channels update mode and period.
void pwm_sync_unlock_update (Pwm *p_pwm)
 Unlock the update of synchronous channels.

Detailed Description

Pulse Width Modulation (PWM) driver for SAM.

Copyright (c) 2011-2019 Microchip Technology Inc. and its subsidiaries.

\cond ASF_LICENSE

Definition in file pwm.h.

Macro Definition Documentation

◆ PWM_INVALID_ARGUMENT

#define PWM_INVALID_ARGUMENT   0xFFFF

Typedef Documentation

◆ pwm_ch_t

typedef enum _pwm_ch_t pwm_ch_t

Definitions for PWM channel number.

Enumeration Type Documentation

◆ _pwm_ch_t

enum _pwm_ch_t

Definitions for PWM channel number.

Enumerator
PWM_CHANNEL_0 
PWM_CHANNEL_1 
PWM_CHANNEL_2 
PWM_CHANNEL_3 

Definition at line 53 of file pwm.h.

53 {
54 PWM_CHANNEL_0 = 0,
55 PWM_CHANNEL_1 = 1,
56 PWM_CHANNEL_2 = 2,
57 PWM_CHANNEL_3 = 3,
58#if (SAM3XA)
59 PWM_CHANNEL_4 = 4,
60 PWM_CHANNEL_5 = 5,
61 PWM_CHANNEL_6 = 6,
62 PWM_CHANNEL_7 = 7
63#endif /* (SAM3XA) */
64} pwm_ch_t;
@ PWM_CHANNEL_1
Definition pwm.h:55
@ PWM_CHANNEL_3
Definition pwm.h:57
@ PWM_CHANNEL_0
Definition pwm.h:54
@ PWM_CHANNEL_2
Definition pwm.h:56
enum _pwm_ch_t pwm_ch_t
Definitions for PWM channel number.

◆ pmc_cmp_unit_t

Definitions for PWM comparison unit.

Enumerator
PWM_CMP_UNIT_0 
PWM_CMP_UNIT_1 
PWM_CMP_UNIT_2 
PWM_CMP_UNIT_3 
PWM_CMP_UNIT_4 
PWM_CMP_UNIT_5 
PWM_CMP_UNIT_6 
PWM_CMP_UNIT_7 

Definition at line 178 of file pwm.h.

178 {
179 PWM_CMP_UNIT_0 = 0,
180 PWM_CMP_UNIT_1 = 1,
181 PWM_CMP_UNIT_2 = 2,
182 PWM_CMP_UNIT_3 = 3,
183 PWM_CMP_UNIT_4 = 4,
184 PWM_CMP_UNIT_5 = 5,
185 PWM_CMP_UNIT_6 = 6,
pmc_cmp_unit_t
Definitions for PWM comparison unit.
Definition pwm.h:178
@ PWM_CMP_UNIT_7
Definition pwm.h:186
@ PWM_CMP_UNIT_6
Definition pwm.h:185
@ PWM_CMP_UNIT_3
Definition pwm.h:182
@ PWM_CMP_UNIT_2
Definition pwm.h:181
@ PWM_CMP_UNIT_4
Definition pwm.h:183
@ PWM_CMP_UNIT_1
Definition pwm.h:180
@ PWM_CMP_UNIT_0
Definition pwm.h:179
@ PWM_CMP_UNIT_5
Definition pwm.h:184

◆ pwm_align_t

Definitions for PWM channel alignment.

Enumerator
PWM_ALIGN_LEFT 
PWM_ALIGN_CENTER 

Definition at line 67 of file pwm.h.

67 {
68 PWM_ALIGN_LEFT = (0 << 8), /* The period is left aligned. */
69 PWM_ALIGN_CENTER = (1 << 8) /* The period is center aligned. */
pwm_align_t
Definitions for PWM channel alignment.
Definition pwm.h:67
@ PWM_ALIGN_LEFT
Definition pwm.h:68
@ PWM_ALIGN_CENTER
Definition pwm.h:69

◆ pwm_cmp_interrupt_t

Definitions for PWM comparison interrupt.

Enumerator
PWM_CMP_MATCH 
PWM_CMP_UPDATE 

Definition at line 172 of file pwm.h.

172 {
173 PWM_CMP_MATCH = 8, /* Comparison unit match */
174 PWM_CMP_UPDATE = 16 /* Comparison unit update */
pwm_cmp_interrupt_t
Definitions for PWM comparison interrupt.
Definition pwm.h:172
@ PWM_CMP_UPDATE
Definition pwm.h:174
@ PWM_CMP_MATCH
Definition pwm.h:173

◆ pwm_counter_event_t

Definitions for PWM event.

Enumerator
PWM_EVENT_PERIOD_END 
PWM_EVENT_PERIOD_HALF_END 

Definition at line 110 of file pwm.h.

110 {
111 PWM_EVENT_PERIOD_END = (0 << 10), /* The channel counter event occurs at the end of the PWM period. */
112 PWM_EVENT_PERIOD_HALF_END = (1 << 10) /* The channel counter event occurs at the half of the PWM period. */
pwm_counter_event_t
Definitions for PWM event.
Definition pwm.h:110
@ PWM_EVENT_PERIOD_END
Definition pwm.h:111
@ PWM_EVENT_PERIOD_HALF_END
Definition pwm.h:112

◆ pwm_fault_id_t

Definitions for PWM fault input ID.

Enumerator
PWM_FAULT_PWMFI0 
PWM_FAULT_MAINOSC 
PWM_FAULT_ADC 
PWM_FAULT_ACC 
PWM_FAULT_TIMER_0 
PWM_FAULT_TIMER_1 

Definition at line 116 of file pwm.h.

116 {
117#if (SAM3U)
118 PWM_FAULT_MAINOSC = (1 << 0),
119 PWM_FAULT_PWMFI2 = (1 << 1),
120 PWM_FAULT_PWMFI0 = (1 << 2),
121 PWM_FAULT_PWMFI1 = (1 << 3),
122#elif (SAM3S || SAM4S )
123 PWM_FAULT_PWMFI0 = (1 << 0),
124 PWM_FAULT_MAINOSC = (1 << 1),
125 PWM_FAULT_ADC = (1 << 2),
126 PWM_FAULT_ACC = (1 << 3),
127 PWM_FAULT_TIMER_0 = (1 << 4),
128 PWM_FAULT_TIMER_1 = (1 << 5),
129#elif (SAM4E )
130 PWM_FAULT_MAINOSC = (1 << 0),
131 PWM_FAULT_ADC = (1 << 1),
132 PWM_FAULT_PWMFI0 = (1 << 2),
133 PWM_FAULT_PWMFI1 = (1 << 3),
134 PWM_FAULT_PWMFI2 = (1 << 4),
135 PWM_FAULT_PWMFI3 = (1 << 5),
136 PWM_FAULT_PWMFI4 = (1 << 6),
137 PWM_FAULT_PWMFI5 = (1 << 7),
138#elif (SAMV70 || SAMV71 || SAME70 || SAMS70)
139 PWM_FAULT_PWMC0_PWMFI0 = (1 << 0),
140 PWM_FAULT_PWMC0_PWMFI1 = (1 << 1),
141 PWM_FAULT_PWMC0_PWMFI2 = (1 << 2),
142 PWM_FAULT_PWMC1_PWMFI0 = (1 << 0),
143 PWM_FAULT_PWMC1_PWMFI1 = (1 << 1),
144 PWM_FAULT_PWMC1_PWMFI2 = (1 << 2),
145 PWM_FAULT_MAINOSC = (1 << 3),
146 PWM_FAULT_AFEC0 = (1 << 4),
147 PWM_FAULT_AFEC1 = (1 << 5),
148 PWM_FAULT_ACC = (1 << 6),
149 PWM_FAULT_TIMER_0 = (1 << 7),
150 PWM_FAULT_TIMER_1 = (1 << 7),
151#elif (SAM3XA)
152 PWM_FAULT_PWMFI0 = (1 << 0),
153 PWM_FAULT_PWMFI1 = (1 << 1),
154 PWM_FAULT_PWMFI2 = (1 << 2),
155 PWM_FAULT_MAINOSC = (1 << 3),
156 PWM_FAULT_ADC = (1 << 4),
157 PWM_FAULT_TIMER_0 = (1 << 5),
158#endif
pwm_fault_id_t
Definitions for PWM fault input ID.
Definition pwm.h:116
@ PWM_FAULT_TIMER_0
Definition pwm.h:127
@ PWM_FAULT_TIMER_1
Definition pwm.h:128
@ PWM_FAULT_ACC
Definition pwm.h:126
@ PWM_FAULT_PWMFI0
Definition pwm.h:123
@ PWM_FAULT_MAINOSC
Definition pwm.h:124
@ PWM_FAULT_ADC
Definition pwm.h:125

◆ pwm_level_t

Definitions for PWM level.

Enumerator
PWM_LOW 
PWM_HIGH 

Definition at line 73 of file pwm.h.

73 {
74 PWM_LOW = LOW, /* Low level */
75 PWM_HIGH = HIGH, /* High level */
76#if (SAM4E || SAMV70 || SAMV71 || SAME70 || SAMS70)
77 PWM_HIGHZ, /* High Impedance */
78#endif
pwm_level_t
Definitions for PWM level.
Definition pwm.h:73
@ PWM_LOW
Definition pwm.h:74
@ PWM_HIGH
Definition pwm.h:75

◆ pwm_pdc_interrupt_t

Definitions for PWM PDC transfer interrupt.

Enumerator
PWM_PDC_TX_END 
PWM_PDC_TX_EMPTY 

Definition at line 196 of file pwm.h.

196 {
197 PWM_PDC_TX_END = (1 << 1), /* PDC Tx end */
198 PWM_PDC_TX_EMPTY = (1 << 2) /* PDC Tx buffer empty */
pwm_pdc_interrupt_t
Definitions for PWM PDC transfer interrupt.
Definition pwm.h:196
@ PWM_PDC_TX_END
Definition pwm.h:197
@ PWM_PDC_TX_EMPTY
Definition pwm.h:198

◆ pwm_pdc_request_mode_t

Definitions for PWM PDC transfer request mode.

Enumerator
PWM_PDC_UPDATE_PERIOD_ELAPSED 
PWM_PDC_COMPARISON_MATCH 

Definition at line 190 of file pwm.h.

190 {
191 PWM_PDC_UPDATE_PERIOD_ELAPSED = (0 << 20), /* PDC transfer request is set as soon as the update period elapses. */
192 PWM_PDC_COMPARISON_MATCH = (1 << 20) /* PDC transfer request is set as soon as the selected comparison matches. */
pwm_pdc_request_mode_t
Definitions for PWM PDC transfer request mode.
Definition pwm.h:190
@ PWM_PDC_UPDATE_PERIOD_ELAPSED
Definition pwm.h:191
@ PWM_PDC_COMPARISON_MATCH
Definition pwm.h:192

◆ pwm_protect_reg_group_t

Definitions of PWM register group.

Enumerator
PWM_GROUP_CLOCK 
PWM_GROUP_DISABLE 
PWM_GROUP_MODE 
PWM_GROUP_PERIOD 
PWM_GROUP_DEAD_TIME 
PWM_GROUP_FAULT 

Definition at line 162 of file pwm.h.

162 {
163 PWM_GROUP_CLOCK = (1 << 0),
164 PWM_GROUP_DISABLE = (1 << 1),
165 PWM_GROUP_MODE = (1 << 2),
166 PWM_GROUP_PERIOD = (1 << 3),
167 PWM_GROUP_DEAD_TIME = (1 << 4),
168 PWM_GROUP_FAULT = (1 << 5)
pwm_protect_reg_group_t
Definitions of PWM register group.
Definition pwm.h:162
@ PWM_GROUP_DISABLE
Definition pwm.h:164
@ PWM_GROUP_DEAD_TIME
Definition pwm.h:167
@ PWM_GROUP_PERIOD
Definition pwm.h:166
@ PWM_GROUP_FAULT
Definition pwm.h:168
@ PWM_GROUP_MODE
Definition pwm.h:165
@ PWM_GROUP_CLOCK
Definition pwm.h:163

◆ pwm_stepper_motor_pair_t

Definitions for PWM channels used by motor stepper.

Enumerator
PWM_STEPPER_MOTOR_CH_0_1 
PWM_STEPPER_MOTOR_CH_2_3 

Definition at line 93 of file pwm.h.

93 {
94 PWM_STEPPER_MOTOR_CH_0_1 = 0, /* Channel 0 and 1 */
95 PWM_STEPPER_MOTOR_CH_2_3 = 1, /* Channel 2 and 3 */
96#if (SAM3XA)
97 PWM_STEPPER_MOTOR_CH_4_5 = 2, /* Channel 4 and 5 */
98 PWM_STEPPER_MOTOR_CH_6_7 = 3 /* Channel 6 and 7 */
99#endif /* (SAM3XA) */
pwm_stepper_motor_pair_t
Definitions for PWM channels used by motor stepper.
Definition pwm.h:93
@ PWM_STEPPER_MOTOR_CH_2_3
Definition pwm.h:95
@ PWM_STEPPER_MOTOR_CH_0_1
Definition pwm.h:94

◆ pwm_sync_interrupt_t

Definitions for PWM synchronous channels interrupt.

Enumerator
PWM_SYNC_WRITE_READY 
PWM_SYNC_UNDERRUN 

Definition at line 202 of file pwm.h.

202 {
203 PWM_SYNC_WRITE_READY = (1 << 0), /* Write Ready for Synchronous Channels Update */
204 PWM_SYNC_UNDERRUN = (1 << 3) /* Synchronous Channels Update Underrun Error */
pwm_sync_interrupt_t
Definitions for PWM synchronous channels interrupt.
Definition pwm.h:202
@ PWM_SYNC_UNDERRUN
Definition pwm.h:204
@ PWM_SYNC_WRITE_READY
Definition pwm.h:203

◆ pwm_sync_update_mode_t

Definitions for PWM synchronous channels update mode.

Enumerator
PWM_SYNC_UPDATE_MODE_0 
PWM_SYNC_UPDATE_MODE_1 
PWM_SYNC_UPDATE_MODE_2 

Definition at line 103 of file pwm.h.

103 {
#define PWM_SCM_UPDM_MODE0
(PWM_SCM) Manual write of double buffer registers and manual update of synchronous channels
#define PWM_SCM_UPDM_MODE1
(PWM_SCM) Manual write of double buffer registers and automatic update of synchronous channels
#define PWM_SCM_UPDM_MODE2
(PWM_SCM) Automatic write of duty-cycle update registers by the PDC and automatic update of synchrono...
pwm_sync_update_mode_t
Definitions for PWM synchronous channels update mode.
Definition pwm.h:103
@ PWM_SYNC_UPDATE_MODE_1
Definition pwm.h:105
@ PWM_SYNC_UPDATE_MODE_2
Definition pwm.h:106
@ PWM_SYNC_UPDATE_MODE_0
Definition pwm.h:104