aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean Cyr <jcyr@dillobits.com>2013-08-11 18:07:25 -0400
committerJean Cyr <jcyr@dillobits.com>2013-08-11 18:07:25 -0400
commit35ec651cee89081ceaca63a1641541d8ed0a1467 (patch)
treeeae4e23e89cbe9ae40bb49b9bad56b75c2bb7b30 /src
parent1d408b80ad70bd8ea873ce7215c8a92a62461b0f (diff)
downloadpx4-firmware-35ec651cee89081ceaca63a1641541d8ed0a1467.tar.gz
px4-firmware-35ec651cee89081ceaca63a1641541d8ed0a1467.tar.bz2
px4-firmware-35ec651cee89081ceaca63a1641541d8ed0a1467.zip
Remove unused IOCTLs
Diffstat (limited to 'src')
-rw-r--r--src/drivers/drv_pwm_output.h5
-rw-r--r--src/drivers/px4io/px4io.cpp6
2 files changed, 1 insertions, 10 deletions
diff --git a/src/drivers/drv_pwm_output.h b/src/drivers/drv_pwm_output.h
index 52a667403..ec9d4ca09 100644
--- a/src/drivers/drv_pwm_output.h
+++ b/src/drivers/drv_pwm_output.h
@@ -118,11 +118,8 @@ ORB_DECLARE(output_pwm);
/** start DSM bind */
#define DSM_BIND_START _IOC(_PWM_SERVO_BASE, 7)
-/** stop DSM bind */
-#define DSM_BIND_STOP _IOC(_PWM_SERVO_BASE, 8)
-
/** Power up DSM receiver */
-#define DSM_BIND_POWER_UP _IOC(_PWM_SERVO_BASE, 9)
+#define DSM_BIND_POWER_UP _IOC(_PWM_SERVO_BASE, 8)
/** set a single servo to a specific value */
#define PWM_SERVO_SET(_servo) _IOC(_PWM_SERVO_BASE, 0x20 + _servo)
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp
index cb61d4aae..10ab10ef3 100644
--- a/src/drivers/px4io/px4io.cpp
+++ b/src/drivers/px4io/px4io.cpp
@@ -1472,12 +1472,6 @@ PX4IO::ioctl(file * /*filep*/, int cmd, unsigned long arg)
io_reg_set(PX4IO_PAGE_SETUP, PX4IO_P_SETUP_DSM, dsm_bind_reinit_uart);
break;
- case DSM_BIND_STOP:
- io_reg_set(PX4IO_PAGE_SETUP, PX4IO_P_SETUP_DSM, dsm_bind_power_down);
- io_reg_set(PX4IO_PAGE_SETUP, PX4IO_P_SETUP_DSM, dsm_bind_reinit_uart);
- usleep(500000);
- break;
-
case DSM_BIND_POWER_UP:
io_reg_set(PX4IO_PAGE_SETUP, PX4IO_P_SETUP_DSM, dsm_bind_power_up);
break;