diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-16 10:56:39 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-16 10:56:39 +0100 |
commit | ded8cc6e14c7ec42d2a0e08b83c1510f213bf55d (patch) | |
tree | b6c16837d7511472f006508fdceb82c00e208253 | |
parent | 8ffb9e29c62e645b48573439d4ebc70acfa7db54 (diff) | |
download | px4-firmware-ded8cc6e14c7ec42d2a0e08b83c1510f213bf55d.tar.gz px4-firmware-ded8cc6e14c7ec42d2a0e08b83c1510f213bf55d.tar.bz2 px4-firmware-ded8cc6e14c7ec42d2a0e08b83c1510f213bf55d.zip |
Add IOCTLs to disable lockdown of an output port
-rw-r--r-- | src/drivers/drv_pwm_output.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/drivers/drv_pwm_output.h b/src/drivers/drv_pwm_output.h index 51f916f37..53065f8eb 100644 --- a/src/drivers/drv_pwm_output.h +++ b/src/drivers/drv_pwm_output.h @@ -189,6 +189,20 @@ ORB_DECLARE(output_pwm); /** get the maximum PWM value the output will send */ #define PWM_SERVO_GET_MAX_PWM _IOC(_PWM_SERVO_BASE, 19) +/** set the lockdown override flag to enable outputs in HIL */ +#define PWM_SERVO_SET_DISABLE_LOCKDOWN _IOC(_PWM_SERVO_BASE, 21) + +/** get the lockdown override flag to enable outputs in HIL */ +#define PWM_SERVO_GET_DISABLE_LOCKDOWN _IOC(_PWM_SERVO_BASE, 22) + +/* + * + * + * WARNING WARNING WARNING! DO NOT EXCEED 31 IN IOC INDICES HERE! + * + * + */ + /** set a single servo to a specific value */ #define PWM_SERVO_SET(_servo) _IOC(_PWM_SERVO_BASE, 0x20 + _servo) |