mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 00:33:33 +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:
@@ -32,10 +32,11 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <board_config.h>
|
||||
#ifndef BOARD_DISABLE_I2C_SPI
|
||||
|
||||
#include <px4_platform_common/i2c.h>
|
||||
|
||||
#if defined(CONFIG_I2C)
|
||||
|
||||
#ifndef BOARD_OVERRIDE_I2C_BUS_EXTERNAL
|
||||
bool px4_i2c_bus_external(const px4_i2c_bus_t &bus)
|
||||
{
|
||||
@@ -85,4 +86,4 @@ bool I2CBusIterator::next()
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif /* BOARD_DISABLE_I2C_SPI */
|
||||
#endif // CONFIG_I2C
|
||||
|
||||
Reference in New Issue
Block a user