mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 18:03:33 +08:00
delete drv_gpio.h, modules/gpio_led, and fmu GPIO ioctls
This commit is contained in:
committed by
Lorenz Meier
parent
c303e36ed0
commit
d4e06e517a
@@ -63,7 +63,6 @@
|
||||
#include <drivers/drv_rc_input.h>
|
||||
#include <drivers/drv_pwm_output.h>
|
||||
#include <drivers/drv_sbus.h>
|
||||
#include <drivers/drv_gpio.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <drivers/drv_mixer.h>
|
||||
|
||||
@@ -449,6 +448,8 @@ namespace
|
||||
PX4IO *g_dev = nullptr;
|
||||
}
|
||||
|
||||
#define PX4IO_DEVICE_PATH "/dev/px4io"
|
||||
|
||||
PX4IO::PX4IO(device::Device *interface) :
|
||||
CDev(PX4IO_DEVICE_PATH),
|
||||
_interface(interface),
|
||||
@@ -2749,19 +2750,6 @@ PX4IO::ioctl(file *filep, int cmd, unsigned long arg)
|
||||
ret = (arg == PWM_SERVO_ENTER_TEST_MODE || PWM_SERVO_EXIT_TEST_MODE) ? 0 : -EINVAL;
|
||||
break;
|
||||
|
||||
case GPIO_RESET: {
|
||||
ret = -EINVAL;
|
||||
break;
|
||||
}
|
||||
|
||||
case GPIO_SET:
|
||||
ret = -EINVAL;
|
||||
break;
|
||||
|
||||
case GPIO_CLEAR:
|
||||
ret = -EINVAL;
|
||||
break;
|
||||
|
||||
case MIXERIOCGETOUTPUTCOUNT:
|
||||
*(unsigned *)arg = _max_actuators;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user