mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-07 04:21:37 +08:00
delete unused GPIO_SET_ALT_3
This commit is contained in:
@@ -71,9 +71,6 @@
|
|||||||
/** configure the board GPIOs in (arg) as inputs */
|
/** configure the board GPIOs in (arg) as inputs */
|
||||||
#define GPIO_SET_INPUT GPIOC(2)
|
#define GPIO_SET_INPUT GPIOC(2)
|
||||||
|
|
||||||
/** configure the board GPIO (arg) for the third alternate function (if supported) */
|
|
||||||
#define GPIO_SET_ALT_3 GPIOC(5)
|
|
||||||
|
|
||||||
/** configure the board GPIO (arg) for the fourth alternate function (if supported) */
|
/** configure the board GPIO (arg) for the fourth alternate function (if supported) */
|
||||||
#define GPIO_SET_ALT_4 GPIOC(6)
|
#define GPIO_SET_ALT_4 GPIOC(6)
|
||||||
|
|
||||||
|
|||||||
@@ -2910,7 +2910,6 @@ PX4FMU::gpio_ioctl(struct file *filp, int cmd, unsigned long arg)
|
|||||||
ret = gpio_set_function(arg, cmd);
|
ret = gpio_set_function(arg, cmd);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GPIO_SET_ALT_3:
|
|
||||||
case GPIO_SET_ALT_4:
|
case GPIO_SET_ALT_4:
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user