Merged in andreasBihlmaier/apps/feature-more_pwm_channels (pull request #66)
increase number of supported PWM channels from 4 to 6 Approved-by: Gregory Nutt
This commit is contained in:
commit
ad5784b24a
@ -44,11 +44,11 @@ config EXAMPLES_PWM_DUTYPCT1
|
|||||||
config EXAMPLES_PWM_CHANNEL1
|
config EXAMPLES_PWM_CHANNEL1
|
||||||
int "First PWM channel number"
|
int "First PWM channel number"
|
||||||
default 1
|
default 1
|
||||||
range 1 4
|
range 1 6
|
||||||
---help---
|
---help---
|
||||||
The first PWM channel number. Default: 1
|
The first PWM channel number. Default: 1
|
||||||
|
|
||||||
if PWM_NCHANNELS = 2 || PWM_NCHANNELS = 3 || PWM_NCHANNELS = 4
|
if PWM_NCHANNELS = 2 || PWM_NCHANNELS = 3 || PWM_NCHANNELS = 4 || PWM_NCHANNELS = 5 || PWM_NCHANNELS = 6
|
||||||
|
|
||||||
config EXAMPLES_PWM_DUTYPCT2
|
config EXAMPLES_PWM_DUTYPCT2
|
||||||
int "Second PWM duty percentage"
|
int "Second PWM duty percentage"
|
||||||
@ -60,13 +60,13 @@ config EXAMPLES_PWM_DUTYPCT2
|
|||||||
config EXAMPLES_PWM_CHANNEL2
|
config EXAMPLES_PWM_CHANNEL2
|
||||||
int "Second PWM channel number"
|
int "Second PWM channel number"
|
||||||
default 2
|
default 2
|
||||||
range 1 4
|
range 1 6
|
||||||
---help---
|
---help---
|
||||||
The second PWM channel number. Default: 2
|
The second PWM channel number. Default: 2
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if PWM_NCHANNELS = 3 || PWM_NCHANNELS = 4
|
if PWM_NCHANNELS = 3 || PWM_NCHANNELS = 4 || PWM_NCHANNELS = 5 || PWM_NCHANNELS = 6
|
||||||
|
|
||||||
config EXAMPLES_PWM_DUTYPCT3
|
config EXAMPLES_PWM_DUTYPCT3
|
||||||
int "Third PWM duty percentage"
|
int "Third PWM duty percentage"
|
||||||
@ -78,13 +78,13 @@ config EXAMPLES_PWM_DUTYPCT3
|
|||||||
config EXAMPLES_PWM_CHANNEL3
|
config EXAMPLES_PWM_CHANNEL3
|
||||||
int "Third PWM channel number"
|
int "Third PWM channel number"
|
||||||
default 3
|
default 3
|
||||||
range 1 4
|
range 1 6
|
||||||
---help---
|
---help---
|
||||||
The third PWM channel number. Default: 3
|
The third PWM channel number. Default: 3
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if PWM_NCHANNELS = 4
|
if PWM_NCHANNELS = 4 || PWM_NCHANNELS = 5 || PWM_NCHANNELS = 6
|
||||||
|
|
||||||
config EXAMPLES_PWM_DUTYPCT4
|
config EXAMPLES_PWM_DUTYPCT4
|
||||||
int "Fourth PWM duty percentage"
|
int "Fourth PWM duty percentage"
|
||||||
@ -96,12 +96,48 @@ config EXAMPLES_PWM_DUTYPCT4
|
|||||||
config EXAMPLES_PWM_CHANNEL4
|
config EXAMPLES_PWM_CHANNEL4
|
||||||
int "Fourth PWM channel number"
|
int "Fourth PWM channel number"
|
||||||
default 4
|
default 4
|
||||||
range 1 4
|
range 1 6
|
||||||
---help---
|
---help---
|
||||||
The fourth PWM channel number. Default: 4
|
The fourth PWM channel number. Default: 4
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if PWM_NCHANNELS = 5 || PWM_NCHANNELS = 6
|
||||||
|
|
||||||
|
config EXAMPLES_PWM_DUTYPCT5
|
||||||
|
int "Fifth PWM duty percentage"
|
||||||
|
default 50
|
||||||
|
range 1 99
|
||||||
|
---help---
|
||||||
|
The fifth PWM duty as a percentage. Default: 50%
|
||||||
|
|
||||||
|
config EXAMPLES_PWM_CHANNEL5
|
||||||
|
int "Fifth PWM channel number"
|
||||||
|
default 5
|
||||||
|
range 1 6
|
||||||
|
---help---
|
||||||
|
The fifth PWM channel number. Default: 5
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
if PWM_NCHANNELS = 6
|
||||||
|
|
||||||
|
config EXAMPLES_PWM_DUTYPCT6
|
||||||
|
int "Sixth PWM duty percentage"
|
||||||
|
default 50
|
||||||
|
range 1 99
|
||||||
|
---help---
|
||||||
|
The sixth PWM duty as a percentage. Default: 50%
|
||||||
|
|
||||||
|
config EXAMPLES_PWM_CHANNEL5
|
||||||
|
int "Sixth PWM channel number"
|
||||||
|
default 6
|
||||||
|
range 1 6
|
||||||
|
---help---
|
||||||
|
The sixth PWM channel number. Default: 6
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !PWM_MULTICHAN
|
if !PWM_MULTICHAN
|
||||||
|
Loading…
Reference in New Issue
Block a user