diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-15 23:20:02 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-15 23:20:02 +0200 |
commit | 9e97994ef92d3ef3496384c4b11c734138c5f3a3 (patch) | |
tree | c45f465d64edcf7c8cd2afa72366e5c0e0eb29c6 /src | |
parent | b8b6974e22b7292d5251f1d2c49b2c81e09cc06b (diff) | |
download | px4-firmware-9e97994ef92d3ef3496384c4b11c734138c5f3a3.tar.gz px4-firmware-9e97994ef92d3ef3496384c4b11c734138c5f3a3.tar.bz2 px4-firmware-9e97994ef92d3ef3496384c4b11c734138c5f3a3.zip |
drivers: Up to three units support
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/device/device.h | 3 | ||||
-rw-r--r-- | src/drivers/drv_accel.h | 1 | ||||
-rw-r--r-- | src/drivers/drv_gyro.h | 1 | ||||
-rw-r--r-- | src/drivers/drv_mag.h | 2 |
4 files changed, 5 insertions, 2 deletions
diff --git a/src/drivers/device/device.h b/src/drivers/device/device.h index b65649d9d..813e1542b 100644 --- a/src/drivers/device/device.h +++ b/src/drivers/device/device.h @@ -540,7 +540,8 @@ private: // class instance for primary driver of each class enum CLASS_DEVICE { CLASS_DEVICE_PRIMARY=0, - CLASS_DEVICE_SECONDARY=1 + CLASS_DEVICE_SECONDARY=1, + CLASS_DEVICE_TERTIARY=2 }; #endif /* _DEVICE_DEVICE_H */ diff --git a/src/drivers/drv_accel.h b/src/drivers/drv_accel.h index a6abaec70..1f98d966b 100644 --- a/src/drivers/drv_accel.h +++ b/src/drivers/drv_accel.h @@ -83,6 +83,7 @@ struct accel_scale { */ ORB_DECLARE(sensor_accel0); ORB_DECLARE(sensor_accel1); +ORB_DECLARE(sensor_accel2); /* * ioctl() definitions diff --git a/src/drivers/drv_gyro.h b/src/drivers/drv_gyro.h index 3635cbce1..41b013a44 100644 --- a/src/drivers/drv_gyro.h +++ b/src/drivers/drv_gyro.h @@ -83,6 +83,7 @@ struct gyro_scale { */ ORB_DECLARE(sensor_gyro0); ORB_DECLARE(sensor_gyro1); +ORB_DECLARE(sensor_gyro2); /* * ioctl() definitions diff --git a/src/drivers/drv_mag.h b/src/drivers/drv_mag.h index a6c509d31..5ddf5d08e 100644 --- a/src/drivers/drv_mag.h +++ b/src/drivers/drv_mag.h @@ -81,7 +81,7 @@ struct mag_scale { */ ORB_DECLARE(sensor_mag0); ORB_DECLARE(sensor_mag1); - +ORB_DECLARE(sensor_mag2); /* * mag device types, for _device_id |