From f8e16008f6a6566310cb56e8f6deb0825f7f2d63 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 8 Feb 2018 17:40:39 +1100 Subject: [PATCH] AP_HAL: updated cypress radio bus pins for skyviper --- libraries/AP_HAL/board/px4.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libraries/AP_HAL/board/px4.h b/libraries/AP_HAL/board/px4.h index 92bfe0cfce..37b80ac25d 100644 --- a/libraries/AP_HAL/board/px4.h +++ b/libraries/AP_HAL/board/px4.h @@ -109,11 +109,10 @@ /* AP_Radio configuration */ #ifdef HAL_RCINPUT_WITH_AP_RADIO -// this is the external SPI bus on a PixHawk1: -# define CYRF_SPI_PX4_SPI_BUS PX4_SPI_BUS_EXT -# define CYRF_SPI_PX4_SPIDEV_EXT (spi_dev_e)PX4_SPIDEV_EXT0 -// this is AUX5 on a PixHawk1: -# define CYRF_IRQ_INPUT (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTD|GPIO_PIN13) +// this is the SPI bus for cypress on the skyviper-v2450 +# define CYRF_SPI_PX4_SPI_BUS 2 +# define CYRF_SPI_PX4_SPIDEV_EXT (spi_dev_e)1 +# define CYRF_IRQ_INPUT (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTD|GPIO_PIN15) #endif // HAL_RCINPUT_WITH_AP_RADIO /* default values */