Merged in yanqil-br/feature-multi_chan_pwm (pull request #973)

multi-channel PWM with single chan selection

Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
Yan Li
2019-08-09 23:57:31 +00:00
committed by Gregory Nutt
parent 60f777b8f4
commit aef0e0b538
5 changed files with 124 additions and 68 deletions
+3
View File
@@ -154,6 +154,9 @@ struct pwm_info_s
uint32_t count; /* The number of pulse to generate. 0 means to
* generate an indefinite number of pulses */
# endif
# ifdef CONFIG_PWM_MULTICHAN_SELECT
uint8_t chan_num; /* Selects the PWM channel number to modify */
#endif
#endif /* CONFIG_PWM_MULTICHAN */
};