mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-05 00:41:36 +08:00
i2c_spi_buses: respect CONFIG_I2C and CONFIG_SPI
- bmp280, dps310, and ms5611 barometers support boards without I2C
This commit is contained in:
@@ -35,6 +35,8 @@
|
||||
|
||||
#include <board_config.h>
|
||||
|
||||
#if defined(CONFIG_I2C)
|
||||
|
||||
#define I2C_BUS_MAX_BUS_ITEMS PX4_NUMBER_I2C_BUSES
|
||||
|
||||
struct px4_i2c_bus_t {
|
||||
@@ -99,3 +101,5 @@ private:
|
||||
int _index{-1};
|
||||
int _external_bus_counter{0};
|
||||
};
|
||||
|
||||
#endif // CONFIG_I2C
|
||||
|
||||
Reference in New Issue
Block a user