From d9366789f3fb6d4ee71323a522845615e8801638 Mon Sep 17 00:00:00 2001 From: Vincent Poon Date: Wed, 30 Aug 2023 13:59:33 +0800 Subject: [PATCH] hwdef: Restore I2C2 on HolybroG4_GPS I2C2 was removed by mistake previously, causing LED Driver to not function. --- libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef.dat | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef.dat index 226bb3d0f92ef..bb27ad6823daf 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef.dat @@ -67,14 +67,14 @@ PA14 JTCK-SWCLK SWD PB7 I2C1_SDA I2C1 PB8 I2C1_SCL I2C1 -# I2C2 bus (unused) -#PA8 I2C2_SDA I2C2 -#PA9 I2C2_SCL I2C2 +# I2C2 bus (LED Driver) +PA8 I2C2_SDA I2C2 +PA9 I2C2_SCL I2C2 define HAL_I2C_INTERNAL_MASK 3 # I2C buses -I2C_ORDER I2C1 +I2C_ORDER I2C1 I2C2 # one SPI bus (for IMU, unused) #PA5 SPI1_SCK SPI1