mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 03:13:34 +08:00
PNI RM3100 magnetometer driver (#10302)
* tested on SPI (px4fmu-v4pro) * WIP I2C support
This commit is contained in:
committed by
Daniel Agar
parent
124a34e8f6
commit
c10ea132b4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user