mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 10:21:36 +08:00
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:
committed by
Lorenz Meier
parent
644d4bb3dc
commit
fea4845ed9
@@ -124,11 +124,13 @@ protected:
|
|||||||
LockMode locking_mode; /**< selected locking mode */
|
LockMode locking_mode; /**< selected locking mode */
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int _bus;
|
|
||||||
enum spi_dev_e _device;
|
enum spi_dev_e _device;
|
||||||
enum spi_mode_e _mode;
|
enum spi_mode_e _mode;
|
||||||
uint32_t _frequency;
|
uint32_t _frequency;
|
||||||
struct spi_dev_s *_dev;
|
struct spi_dev_s *_dev;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
int _bus;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace device
|
} // namespace device
|
||||||
|
|||||||
Reference in New Issue
Block a user