drivers: Up to three units support

This commit is contained in:
Lorenz Meier
2014-07-15 23:20:02 +02:00
parent b8b6974e22
commit 9e97994ef9
4 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -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 */
+1
View File
@@ -83,6 +83,7 @@ struct accel_scale {
*/
ORB_DECLARE(sensor_accel0);
ORB_DECLARE(sensor_accel1);
ORB_DECLARE(sensor_accel2);
/*
* ioctl() definitions
+1
View File
@@ -83,6 +83,7 @@ struct gyro_scale {
*/
ORB_DECLARE(sensor_gyro0);
ORB_DECLARE(sensor_gyro1);
ORB_DECLARE(sensor_gyro2);
/*
* ioctl() definitions
+1 -1
View File
@@ -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