forked from Archive/PX4-Autopilot
Fix SPI select on port 4 to use the right defines
This commit is contained in:
parent
096a4673e9
commit
2bfde311db
|
@ -172,14 +172,14 @@ __EXPORT void stm32_spi4select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
|
||||||
switch (devid) {
|
switch (devid) {
|
||||||
case PX4_SPIDEV_EXT0:
|
case PX4_SPIDEV_EXT0:
|
||||||
/* Making sure the other peripherals are not selected */
|
/* Making sure the other peripherals are not selected */
|
||||||
stm32_gpiowrite(PX4_SPIDEV_EXT0, !selected);
|
stm32_gpiowrite(GPIO_SPI_CS_EXT0, !selected);
|
||||||
stm32_gpiowrite(PX4_SPIDEV_EXT1, 1);
|
stm32_gpiowrite(GPIO_SPI_CS_EXT1, 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PX4_SPIDEV_EXT1:
|
case PX4_SPIDEV_EXT1:
|
||||||
/* Making sure the other peripherals are not selected */
|
/* Making sure the other peripherals are not selected */
|
||||||
stm32_gpiowrite(PX4_SPIDEV_EXT1, !selected);
|
stm32_gpiowrite(GPIO_SPI_CS_EXT1, !selected);
|
||||||
stm32_gpiowrite(PX4_SPIDEV_EXT0, 1);
|
stm32_gpiowrite(GPIO_SPI_CS_EXT0, 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue