diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-06-10 15:05:22 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-06-10 15:05:22 +0200 |
commit | a2ef04146aa5eb233fd564f38e447e983e5985a7 (patch) | |
tree | 6c9f92c54e5d767dc42e462e4a618ec8e736fc2a /src/drivers/device/device.h | |
parent | 07fb1e089d1d15d512a8a68b03020b1ffd877ed3 (diff) | |
download | px4-firmware-a2ef04146aa5eb233fd564f38e447e983e5985a7.tar.gz px4-firmware-a2ef04146aa5eb233fd564f38e447e983e5985a7.tar.bz2 px4-firmware-a2ef04146aa5eb233fd564f38e447e983e5985a7.zip |
Introduce enum / define for multiple devices
Diffstat (limited to 'src/drivers/device/device.h')
-rw-r--r-- | src/drivers/device/device.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drivers/device/device.h b/src/drivers/device/device.h index d99f22922..be6f6f4ec 100644 --- a/src/drivers/device/device.h +++ b/src/drivers/device/device.h @@ -510,6 +510,9 @@ private: } // namespace device // class instance for primary driver of each class -#define CLASS_DEVICE_PRIMARY 0 +enum CLASS_DEVICE { + CLASS_DEVICE_PRIMARY=0, + CLASS_DEVICE_SECONDARY=1 +}; #endif /* _DEVICE_DEVICE_H */ |