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);