apps/examples/pwm: Remove BOARIOC_PWMSETUP command.

This commit is contained in:
Gregory Nutt 2016-12-05 14:55:41 -06:00
parent 4765d7baf8
commit ba47896c0f
2 changed files with 1 additions and 14 deletions

View File

@ -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

View File

@ -41,7 +41,6 @@
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/boardctl.h>
#include <stdio.h>
#include <stdlib.h>
@ -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);