HAL_PX4: define cypress SPI bus

This commit is contained in:
Peter Barker 2017-12-21 17:17:09 +11:00 committed by Andrew Tridgell
parent beb5a41389
commit ddb2f4b5ad
1 changed files with 4 additions and 0 deletions

View File

@ -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),
};