apps/examples/pwm: Remove BOARIOC_PWMSETUP command.
This commit is contained in:
parent
4765d7baf8
commit
ba47896c0f
@ -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
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user