PNI RM3100 magnetometer driver (#10302)

* tested on SPI (px4fmu-v4pro)
 * WIP I2C support
This commit is contained in:
Kevin Lopez Alvarez
2018-08-28 11:44:34 -04:00
committed by Daniel Agar
parent 124a34e8f6
commit c10ea132b4
11 changed files with 1790 additions and 0 deletions
@@ -153,6 +153,8 @@
#define PX4_SPI_BUS_EXT0 5
#define PX4_SPI_BUS_EXT1 6
#define PX4_SPI_BUS_EXT PX4_SPI_BUS_EXT0
/* Use these in place of the uint32_t enumeration to select a specific SPI device on SPI1 */
#define PX4_SPIDEV_GYRO PX4_MK_SPI_SEL(PX4_SPI_BUS_SENSORS, 1)
@@ -171,6 +173,8 @@
#define PX4_SPIDEV_EXT0 PX4_MK_SPI_SEL(PX4_SPI_BUS_EXT0, 1)
#define PX4_SPIDEV_EXT1 PX4_MK_SPI_SEL(PX4_SPI_BUS_EXT1, 1)
#define PX4_SPIDEV_RM_EXT PX4_SPIDEV_EXT0
/* I2C busses */
#define PX4_I2C_BUS_ONBOARD 1
#define PX4_I2C_BUS_EXPANSION 2