diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-28 01:50:39 -0700 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-28 01:50:39 -0700 |
commit | fb57c28546344cd3d2ffd588b0336d7dfdb773b1 (patch) | |
tree | 0e5eb89ee42874bf1c1840413617816dde3da134 /src/drivers/boards/px4fmu-v2/board_config.h | |
parent | 8c434bc5790bfa871435398ed68f298f840fe50b (diff) | |
parent | 65344133a4a6944b71f2ca134c6c4443ff7c96cd (diff) | |
download | px4-firmware-fb57c28546344cd3d2ffd588b0336d7dfdb773b1.tar.gz px4-firmware-fb57c28546344cd3d2ffd588b0336d7dfdb773b1.tar.bz2 px4-firmware-fb57c28546344cd3d2ffd588b0336d7dfdb773b1.zip |
Merge pull request #1017 from PX4/spi4_support
SPI4 support
Diffstat (limited to 'src/drivers/boards/px4fmu-v2/board_config.h')
-rw-r--r-- | src/drivers/boards/px4fmu-v2/board_config.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/boards/px4fmu-v2/board_config.h b/src/drivers/boards/px4fmu-v2/board_config.h index c2de1bfba..36eb7bec4 100644 --- a/src/drivers/boards/px4fmu-v2/board_config.h +++ b/src/drivers/boards/px4fmu-v2/board_config.h @@ -106,8 +106,11 @@ __BEGIN_DECLS #define GPIO_SPI_CS_BARO (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_SET|GPIO_PORTD|GPIO_PIN7) #define GPIO_SPI_CS_FRAM (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_SET|GPIO_PORTD|GPIO_PIN10) #define GPIO_SPI_CS_MPU (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_SET|GPIO_PORTC|GPIO_PIN2) +#define GPIO_SPI_CS_EXT0 (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|GPIO_OUTPUT_SET|GPIO_PORTE|GPIO_PIN4) +#define GPIO_SPI_CS_EXT1 (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|GPIO_OUTPUT_SET|GPIO_PORTC|GPIO_PIN14) #define PX4_SPI_BUS_SENSORS 1 +#define PX4_SPI_BUS_EXT 4 /* Use these in place of the spi_dev_e enumeration to select a specific SPI device on SPI1 */ #define PX4_SPIDEV_GYRO 1 @@ -115,6 +118,10 @@ __BEGIN_DECLS #define PX4_SPIDEV_BARO 3 #define PX4_SPIDEV_MPU 4 +/* External bus */ +#define PX4_SPIDEV_EXT0 1 +#define PX4_SPIDEV_EXT1 2 + /* I2C busses */ #define PX4_I2C_BUS_EXPANSION 1 #define PX4_I2C_BUS_LED 2 |