diff options
author | Jean Cyr <jcyr@dillobits.com> | 2013-07-09 20:37:00 -0400 |
---|---|---|
committer | Jean Cyr <jcyr@dillobits.com> | 2013-07-09 20:37:00 -0400 |
commit | 897b541b12d5782af51ce0a78658cc153bd13544 (patch) | |
tree | 9f4ff4b364a7967f96ce3b38fb45e2518f497213 /src/modules/px4iofirmware/protocol.h | |
parent | 328f4f8c872a0e33857fd9a1112963438a87165b (diff) | |
download | px4-firmware-897b541b12d5782af51ce0a78658cc153bd13544.tar.gz px4-firmware-897b541b12d5782af51ce0a78658cc153bd13544.tar.bz2 px4-firmware-897b541b12d5782af51ce0a78658cc153bd13544.zip |
General cleanup of /dev/px4io and /dev/px4fmu
- Use distinct common symbols for px4io and px4fmu device files, and use
instead of hardcoded filenames
- Use common symbols defining px4io bits consistently between px4fmu and
px4io builds.
Diffstat (limited to 'src/modules/px4iofirmware/protocol.h')
-rw-r--r-- | src/modules/px4iofirmware/protocol.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/px4iofirmware/protocol.h b/src/modules/px4iofirmware/protocol.h index 6ee5c2834..88d8cc87c 100644 --- a/src/modules/px4iofirmware/protocol.h +++ b/src/modules/px4iofirmware/protocol.h @@ -157,6 +157,13 @@ #define PX4IO_P_SETUP_PWM_DEFAULTRATE 3 /* 'low' PWM frame output rate in Hz */ #define PX4IO_P_SETUP_PWM_ALTRATE 4 /* 'high' PWM frame output rate in Hz */ #define PX4IO_P_SETUP_RELAYS 5 /* bitmask of relay/switch outputs, 0 = off, 1 = on */ + +/* px4io relay bit definitions */ +#define PX4IO_RELAY1 (1<<0) +#define PX4IO_RELAY2 (1<<1) +#define PX4IO_ACC1 (1<<2) +#define PX4IO_ACC2 (1<<3) + #define PX4IO_P_SETUP_VBATT_SCALE 6 /* battery voltage correction factor (float) */ #define PX4IO_P_SETUP_DSM 7 /* DSM bind state */ enum { /* DSM bind states */ |