From db9bf19e46981237146dbc4140e5ddc4a4d325f0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 30 May 2018 08:30:46 +1000 Subject: [PATCH] HAL_ChibiOS: enable i2c for FMUv5 --- libraries/AP_HAL_ChibiOS/hwdef/fmuv5/hwdef.dat | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/fmuv5/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/fmuv5/hwdef.dat index d8f44c89c6..c5a51f0a6b 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/fmuv5/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/fmuv5/hwdef.dat @@ -74,6 +74,24 @@ PF4 BMI055_G_CS CS PG10 BMI055_A_CS CS PF5 FRAM_CS CS SPEED_VERYLOW +# I2C buses + +PB8 I2C1_SCL I2C1 +PB9 I2C1_SDA I2C1 + +PF1 I2C2_SCL I2C2 +PF0 I2C2_SDA I2C2 + +PH7 I2C3_SCL I2C3 +PH8 I2C3_SDA I2C3 + +#PF14 I2C4_SCK I2C4 +#PF15 I2C4_SDA I2C4 + +# order of I2C buses +I2C_ORDER I2C2 I2C1 I2C3 + + # enable pins PE3 VDD_3V3_SENSORS_EN OUTPUT HIGH PF12 nVDD_5V_HIPOWER_EN OUTPUT LOW