From 7971f03bde11a0f7f2f1b4d32a0aa9e3ca8587f8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 7 Jan 2018 14:44:30 +1100 Subject: [PATCH] Hal_Chibios: fixed F412 SPI config --- libraries/AP_HAL_ChibiOS/SPIDevice.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/SPIDevice.cpp b/libraries/AP_HAL_ChibiOS/SPIDevice.cpp index 2bc0720242..0e46cfb4ca 100644 --- a/libraries/AP_HAL_ChibiOS/SPIDevice.cpp +++ b/libraries/AP_HAL_ChibiOS/SPIDevice.cpp @@ -23,13 +23,11 @@ using namespace ChibiOS; #if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_CHIBIOS_SKYVIPER_F412 -#define SPI_BUS_SENSORS 1 -#define SPI_BUS_SENSORS2 0 -#define SPI_BUS_EXT 2 +#define SPI_BUS_FLOW 1 +#define SPI_BUS_RADIO 0 -#define SPIDEV_CS_MPU GPIOB, 12 -#define SPIDEV_CS_CYRF GPIOA, 4 -#define SPIDEV_CS_FLOW GPIOA, 15 +#define SPIDEV_CS_FLOW GPIOB, 12 +#define SPIDEV_CS_RADIO GPIOA, 4 #define SPIDEV_RADIO 1 #define SPIDEV_FLOW 2