aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/device/spi.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2014-06-26 12:13:05 +1000
committerLorenz Meier <lm@inf.ethz.ch>2014-07-08 11:43:58 +0200
commitfea4845ed97ca5219ceb8af0b0fb6d68603eea17 (patch)
tree5d8eb4e69d099fc0873f3ef7c9d1a2a2646f478d /src/drivers/device/spi.h
parent644d4bb3dc6186d7908ed0aa75d973cfc0826253 (diff)
downloadpx4-firmware-fea4845ed97ca5219ceb8af0b0fb6d68603eea17.tar.gz
px4-firmware-fea4845ed97ca5219ceb8af0b0fb6d68603eea17.tar.bz2
px4-firmware-fea4845ed97ca5219ceb8af0b0fb6d68603eea17.zip
SPI: make _bus protected
this allows runtime use of internal/external bus to determine if DRDY should be used on the L3GD20
Diffstat (limited to 'src/drivers/device/spi.h')
-rw-r--r--src/drivers/device/spi.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/device/spi.h b/src/drivers/device/spi.h
index 299575dc5..03986da1e 100644
--- a/src/drivers/device/spi.h
+++ b/src/drivers/device/spi.h
@@ -124,11 +124,13 @@ protected:
LockMode locking_mode; /**< selected locking mode */
private:
- int _bus;
enum spi_dev_e _device;
enum spi_mode_e _mode;
uint32_t _frequency;
struct spi_dev_s *_dev;
+
+protected:
+ int _bus;
};
} // namespace device