Skip to content
Snippets Groups Projects
Commit 0910cb32 authored by Lorenz Meier's avatar Lorenz Meier
Browse files

FMUv4: Add baro SPI bus define

parent e663b60c
No related branches found
No related tags found
No related merge requests found
......@@ -120,6 +120,7 @@ __BEGIN_DECLS
#define PX4_SPI_BUS_SENSORS 1
#define PX4_SPI_BUS_RAMTRON 2
#define PX4_SPI_BUS_BARO PX4_SPI_BUS_RAMTRON
/* Use these in place of the spi_dev_e enumeration to select a specific SPI device on SPI1 */
#define PX4_SPIDEV_GYRO 1
......@@ -133,6 +134,9 @@ __BEGIN_DECLS
* use 3 for the barometer to differentiate
*/
#define PX4_SPIDEV_BARO 3
#if (PX4_SPIDEV_BARO == SPIDEV_FLASH)
#error PX4_SPIDEV_BARO must not be equal to SPIDEV_FLASH as they share the same bus
#endif
/* I2C busses */
#define PX4_I2C_BUS_EXPANSION 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment