fmu: Remove Legacy FMUv4 and use the abstaction SPEKTRUM_POWER

Removed the legacy FMUv4 define that was activating a nonexistent
   pull up and on some HW driving the PPM_IN aka RC_IN aka SPEKTRUM_RX
   to VDD.

   Use the abstaction SPEKTRUM_POWER to enable the interface not
   the define for the GPIO pin.
This commit is contained in:
David Sidrane
2017-03-30 16:19:26 -10:00
parent 26d50d2c98
commit d80a322961
+1 -10
View File
@@ -1023,15 +1023,6 @@ void PX4FMU::set_rc_scan_state(RC_SCAN newState)
void PX4FMU::rc_io_invert(bool invert)
{
INVERT_RC_INPUT(invert);
#ifdef GPIO_RC_OUT
if (!invert) {
// set FMU_RC_OUTPUT high to pull RC_INPUT up
px4_arch_gpiowrite(GPIO_RC_OUT, 1);
}
#endif
}
#endif
@@ -2413,7 +2404,7 @@ PX4FMU::pwm_ioctl(file *filp, int cmd, unsigned long arg)
break;
}
#ifdef GPIO_SPEKTRUM_PWR_EN
#ifdef SPEKTRUM_POWER
case DSM_BIND_START:
/* only allow DSM2, DSM-X and DSM-X with more than 7 channels */