From 751c3a554a5ddacf4f0731866531415e938565cf Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 2 Apr 2018 10:46:35 +1000 Subject: [PATCH] HAL_ChibiOS: added fmuv4-beta hardware definition for an old pixracer quad I have (and I believe Peter has one too) --- .../AP_HAL_ChibiOS/hwdef/fmuv4-beta/hwdef.dat | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/fmuv4-beta/hwdef.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/fmuv4-beta/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/fmuv4-beta/hwdef.dat new file mode 100644 index 0000000000..8021e52e05 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/fmuv4-beta/hwdef.dat @@ -0,0 +1,14 @@ +# hardware config for early beta pixracer boards (prior to R12) + +include ../fmuv4/hwdef.dat + +# SPI2 SCK is on PB13 +#define GPIO_SPI2_SCK (GPIO_SPI2_SCK_2|GPIO_SPEED_50MHz) +undef SPI2_SCK +PB13 SPI2_SCK SPI2 + +# note that PC13 (SBUS invert) is active low on this board + +# baro is on main sensors bus +define HAL_BARO_MS5611_SPI_INT_NAME "ms5611_int2" +SPIDEV ms5611_int2 SPI1 DEVID3 BARO_CS MODE3 20*MHZ 20*MHZ