From ddb2f4b5ad495a20909827dd8730f5e4dbb0cb9d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 21 Dec 2017 17:17:09 +1100 Subject: [PATCH] HAL_PX4: define cypress SPI bus --- libraries/AP_HAL_PX4/SPIDevice.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_HAL_PX4/SPIDevice.cpp b/libraries/AP_HAL_PX4/SPIDevice.cpp index e0bc4c8a12..99843f34bf 100644 --- a/libraries/AP_HAL_PX4/SPIDevice.cpp +++ b/libraries/AP_HAL_PX4/SPIDevice.cpp @@ -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), };