Browse Source

HAL_PX4: define cypress SPI bus

master
Peter Barker 7 years ago committed by Andrew Tridgell
parent
commit
ddb2f4b5ad
  1. 4
      libraries/AP_HAL_PX4/SPIDevice.cpp

4
libraries/AP_HAL_PX4/SPIDevice.cpp

@ -138,6 +138,10 @@ SPIDesc SPIDeviceManager::device_table[] = { @@ -138,6 +138,10 @@ SPIDesc SPIDeviceManager::device_table[] = {
#endif
#endif
#ifdef CYRF_SPI_PX4_SPI_BUS
SPIDesc("cypress", CYRF_SPI_PX4_SPI_BUS, (spi_dev_e)1, SPIDEV_MODE0, 2*MHZ, 2*MHZ),
#endif
SPIDesc(nullptr, 0, (spi_dev_e)0, (spi_mode_e)0, 0, 0),
};

Loading…
Cancel
Save