SPI: make _bus protected

this allows runtime use of internal/external bus to determine if DRDY
should be used on the L3GD20
This commit is contained in:
Andrew Tridgell 2014-06-26 12:13:05 +10:00 committed by Lorenz Meier
parent 644d4bb3dc
commit fea4845ed9
1 changed files with 3 additions and 1 deletions

View File

@ -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