diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-28 10:45:11 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-28 10:49:34 +0200 |
commit | 2bfde311db7daa0771c7be7f165b7601bf2946ca (patch) | |
tree | b7217806eec9c7481630d74dfe5d413a8694f18a /src | |
parent | 096a4673e90240ea31fc414dbc09d3a00f24b180 (diff) | |
download | px4-firmware-2bfde311db7daa0771c7be7f165b7601bf2946ca.tar.gz px4-firmware-2bfde311db7daa0771c7be7f165b7601bf2946ca.tar.bz2 px4-firmware-2bfde311db7daa0771c7be7f165b7601bf2946ca.zip |
Fix SPI select on port 4 to use the right defines
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/boards/px4fmu-v2/px4fmu_spi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/boards/px4fmu-v2/px4fmu_spi.c b/src/drivers/boards/px4fmu-v2/px4fmu_spi.c index 903329052..01dbd6e77 100644 --- a/src/drivers/boards/px4fmu-v2/px4fmu_spi.c +++ b/src/drivers/boards/px4fmu-v2/px4fmu_spi.c @@ -172,14 +172,14 @@ __EXPORT void stm32_spi4select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, switch (devid) { case PX4_SPIDEV_EXT0: /* Making sure the other peripherals are not selected */ - stm32_gpiowrite(PX4_SPIDEV_EXT0, !selected); - stm32_gpiowrite(PX4_SPIDEV_EXT1, 1); + stm32_gpiowrite(GPIO_SPI_CS_EXT0, !selected); + stm32_gpiowrite(GPIO_SPI_CS_EXT1, 1); break; case PX4_SPIDEV_EXT1: /* Making sure the other peripherals are not selected */ - stm32_gpiowrite(PX4_SPIDEV_EXT1, !selected); - stm32_gpiowrite(PX4_SPIDEV_EXT0, 1); + stm32_gpiowrite(GPIO_SPI_CS_EXT1, !selected); + stm32_gpiowrite(GPIO_SPI_CS_EXT0, 1); break; default: |