mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 17:28:54 +08:00
delete unused GPIO_SET_OUTPUT_LOW
This commit is contained in:
@@ -79,9 +79,6 @@
|
||||
|
||||
#define GPIO_PERIPHERAL_RAIL_RESET GPIOC(14)
|
||||
|
||||
/** configure the board GPIOs in (arg) as outputs, initially low */
|
||||
#define GPIO_SET_OUTPUT_LOW GPIOC(15)
|
||||
|
||||
/** configure the board GPIOs in (arg) as outputs, initially high */
|
||||
#define GPIO_SET_OUTPUT_HIGH GPIOC(16)
|
||||
|
||||
|
||||
@@ -2685,13 +2685,6 @@ PX4FMU::gpio_set_function(uint32_t gpios, int function)
|
||||
|
||||
break;
|
||||
|
||||
case GPIO_SET_OUTPUT_LOW:
|
||||
if (_gpio_tab[i].output) {
|
||||
px4_arch_configgpio((_gpio_tab[i].output & ~(GPIO_OUTPUT_SET)) | GPIO_OUTPUT_CLEAR);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case GPIO_SET_OUTPUT_HIGH:
|
||||
if (_gpio_tab[i].output) {
|
||||
px4_arch_configgpio((_gpio_tab[i].output & ~(GPIO_OUTPUT_CLEAR)) | GPIO_OUTPUT_SET);
|
||||
@@ -2900,7 +2893,6 @@ PX4FMU::gpio_ioctl(struct file *filp, int cmd, unsigned long arg)
|
||||
break;
|
||||
|
||||
case GPIO_SET_OUTPUT:
|
||||
case GPIO_SET_OUTPUT_LOW:
|
||||
case GPIO_SET_OUTPUT_HIGH:
|
||||
case GPIO_SET_INPUT:
|
||||
ret = gpio_set_function(arg, cmd);
|
||||
|
||||
Reference in New Issue
Block a user