From ba47896c0fc1e7352622375243dc81d4545a854e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 5 Dec 2016 14:55:41 -0600 Subject: [PATCH] apps/examples/pwm: Remove BOARIOC_PWMSETUP command. --- examples/pwm/Kconfig | 3 +-- examples/pwm/pwm_main.c | 12 ------------ 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/examples/pwm/Kconfig b/examples/pwm/Kconfig index 1d2e9f02a..9ababa130 100644 --- a/examples/pwm/Kconfig +++ b/examples/pwm/Kconfig @@ -6,8 +6,7 @@ config EXAMPLES_PWM bool "Pulse width modulation (PWM) example" default n - depends on PWM && NSH_BUILTIN_APPS && LIB_BOARDCTL - select BOARDCTL_PWMTEST + depends on PWM && NSH_BUILTIN_APPS ---help--- Enable the Pulse width modulation (PWM) example diff --git a/examples/pwm/pwm_main.c b/examples/pwm/pwm_main.c index 143e19e82..76619b924 100644 --- a/examples/pwm/pwm_main.c +++ b/examples/pwm/pwm_main.c @@ -41,7 +41,6 @@ #include #include -#include #include #include @@ -468,17 +467,6 @@ int pwm_main(int argc, char *argv[]) pwm_devpath(&g_pwmstate, CONFIG_EXAMPLES_PWM_DEVPATH); } - /* Initialization of the PWM hardware is performed by logic external to - * this test. - */ - - ret = boardctl(BOARDIOC_PWMTEST_SETUP, 0); - if (ret != OK) - { - printf("pwm_main: boardctl failed: %d\n", errno); - goto errout; - } - /* Open the PWM device for reading */ fd = open(g_pwmstate.devpath, O_RDONLY);