summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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