Hal_Chibios: fixed F412 SPI config

This commit is contained in:
Andrew Tridgell 2018-01-07 14:44:30 +11:00
parent 51512ed7c0
commit 7971f03bde

View File

@ -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