summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-04-15 21:37:41 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-04-15 21:37:41 -0600
commite33ceb67b2dbc9798c6516909c024561fbb2a2c0 (patch)
treeb3e36115c97b38ae1e7472665e14d5950a37b34d
parent806a804fe767751302892d7ac1848530f3afe3f9 (diff)
downloadpx4-nuttx-e33ceb67b2dbc9798c6516909c024561fbb2a2c0.tar.gz
px4-nuttx-e33ceb67b2dbc9798c6516909c024561fbb2a2c0.tar.bz2
px4-nuttx-e33ceb67b2dbc9798c6516909c024561fbb2a2c0.zip
Missing PWM boardctl logic breaks PWM test.
-rw-r--r--nuttx/configs/Kconfig4
-rw-r--r--nuttx/configs/boardctl.c15
2 files changed, 19 insertions, 0 deletions
diff --git a/nuttx/configs/Kconfig b/nuttx/configs/Kconfig
index fab01136d..d7856d0e0 100644
--- a/nuttx/configs/Kconfig
+++ b/nuttx/configs/Kconfig
@@ -1596,6 +1596,10 @@ config BOARDCTL_ADCTEST
bool "Enable ADC test interfaces"
default n
+config BOARDCTL_PWMTEST
+ bool "Enable PWM test interfaces"
+ default n
+
config BOARDCTL_GRAPHICS
bool "Enable custom graphics initialization interfaces"
default n
diff --git a/nuttx/configs/boardctl.c b/nuttx/configs/boardctl.c
index 23d1f8507..dae315342 100644
--- a/nuttx/configs/boardctl.c
+++ b/nuttx/configs/boardctl.c
@@ -141,6 +141,21 @@ int boardctl(unsigned int cmd, uintptr_t arg)
break;
#endif
+#ifdef CONFIG_BOARDCTL_PWMTEST
+ /* CMD: BOARDIOC_PWMTEST_SETUP
+ * DESCRIPTION: PWM controller test configuration
+ * ARG: None
+ * CONFIGURATION: CONFIG_LIB_BOARDCTL && CONFIG_BOARDCTL_PWMTEST
+ * DEPENDENCIES: Board logic must provide board_pwm_setup()
+ */
+
+ case BOARDIOC_PWMTEST_SETUP:
+ {
+ ret = board_pwm_setup();
+ }
+ break;
+#endif
+
#ifdef CONFIG_BOARDCTL_GRAPHICS
/* CMD: BOARDIOC_GRAPHICS_SETUP
* DESCRIPTION: Configure graphics that require special initialization