Browse Source

delete unused GPIO_SET_ALT_4

sbg
Daniel Agar 7 years ago
parent
commit
c65db00914
  1. 3
      src/drivers/drv_gpio.h
  2. 4
      src/drivers/px4fmu/fmu.cpp

3
src/drivers/drv_gpio.h

@ -71,9 +71,6 @@ @@ -71,9 +71,6 @@
/** configure the board GPIOs in (arg) as inputs */
#define GPIO_SET_INPUT GPIOC(2)
/** configure the board GPIO (arg) for the fourth alternate function (if supported) */
#define GPIO_SET_ALT_4 GPIOC(6)
/** set the GPIOs in (arg) */
#define GPIO_SET GPIOC(10)

4
src/drivers/px4fmu/fmu.cpp

@ -2910,10 +2910,6 @@ PX4FMU::gpio_ioctl(struct file *filp, int cmd, unsigned long arg) @@ -2910,10 +2910,6 @@ PX4FMU::gpio_ioctl(struct file *filp, int cmd, unsigned long arg)
ret = gpio_set_function(arg, cmd);
break;
case GPIO_SET_ALT_4:
ret = -EINVAL;
break;
case GPIO_SET:
case GPIO_CLEAR:
ret = gpio_write(arg, cmd);

Loading…
Cancel
Save