diff --git a/libraries/AP_HAL/AP_HAL_Boards.h b/libraries/AP_HAL/AP_HAL_Boards.h index 62646a2142..9455065cd1 100644 --- a/libraries/AP_HAL/AP_HAL_Boards.h +++ b/libraries/AP_HAL/AP_HAL_Boards.h @@ -207,6 +207,10 @@ #define HAL_WITH_UAVCAN 0 #endif +#ifndef HAL_RCINPUT_WITH_AP_RADIO +#define HAL_RCINPUT_WITH_AP_RADIO 0 +#endif + #ifndef HAL_WITH_IO_MCU #define HAL_WITH_IO_MCU 0 #endif diff --git a/libraries/AP_HAL/board/px4.h b/libraries/AP_HAL/board/px4.h index c872f9e25c..7583d92bcd 100644 --- a/libraries/AP_HAL/board/px4.h +++ b/libraries/AP_HAL/board/px4.h @@ -106,15 +106,6 @@ #define HAL_PX4_HAVE_PWM_INPUT 0 #endif -/* AP_Radio configuration */ - -#ifdef HAL_RCINPUT_WITH_AP_RADIO -// 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 */ #ifndef HAL_SERIAL0_BAUD_DEFAULT #define HAL_SERIAL0_BAUD_DEFAULT 115200