mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Merged in paulpatience/nuttx/pwm (pull request #29)
PWM: Add support for multiple output channels per timer
This commit is contained in:
@@ -139,6 +139,10 @@ config ARCH_HAVE_PWM_PULSECOUNT
|
||||
bool
|
||||
default n
|
||||
|
||||
config ARCH_HAVE_PWM_MULTICHAN
|
||||
bool
|
||||
default n
|
||||
|
||||
menuconfig PWM
|
||||
bool "PWM Driver Support"
|
||||
default n
|
||||
@@ -147,6 +151,7 @@ menuconfig PWM
|
||||
See include/nuttx/pwm.h for further PWM driver information.
|
||||
|
||||
if PWM
|
||||
|
||||
config PWM_PULSECOUNT
|
||||
bool "PWM Pulse Count Support"
|
||||
default n
|
||||
@@ -157,6 +162,26 @@ config PWM_PULSECOUNT
|
||||
hardware will support a fixed pulse count, then this configuration
|
||||
should be set to enable the capability.
|
||||
|
||||
config PWM_MULTICHAN
|
||||
bool "PWM Multiple Output Channel Support"
|
||||
default n
|
||||
depends on ARCH_HAVE_PWM_MULTICHAN
|
||||
depends on !PWM_PULSECOUNT
|
||||
---help---
|
||||
Enables support for multiple output channels per timer.
|
||||
|
||||
if PWM_MULTICHAN
|
||||
|
||||
config PWM_NCHANNELS
|
||||
int "Number of Output Channels Per Timer"
|
||||
default 1
|
||||
range 1 4
|
||||
---help---
|
||||
Specifies the number of output channels per timer. Each timer
|
||||
may support fewer output channels than this value.
|
||||
|
||||
endif # PWM_MULTICHAN
|
||||
|
||||
endif # PWM
|
||||
|
||||
config ARCH_HAVE_I2CRESET
|
||||
|
||||
Reference in New Issue
Block a user