From 38a0497dfd83cc7ce08bfc3638ba4392fff37e4c Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Fri, 10 Apr 2026 17:29:56 +0100 Subject: [PATCH] AP_HAL_ChibiOS: correct I2C IRQs for STM32L4+ Rename STM32_I2C_I2Cn_IRQ_PRIORITY to STM32_IRQ_I2Cn_PRIORITY to match the naming used by the kernel v9 I2Cv4 driver, mirroring the same rename already applied to stm32g4_mcuconf.h. --- libraries/AP_HAL_ChibiOS/hwdef/common/stm32l4+_mcuconf.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/stm32l4+_mcuconf.h b/libraries/AP_HAL_ChibiOS/hwdef/common/stm32l4+_mcuconf.h index da052820ae6..853341489a3 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/stm32l4+_mcuconf.h +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/stm32l4+_mcuconf.h @@ -240,10 +240,10 @@ * I2C driver system settings. */ #define STM32_I2C_BUSY_TIMEOUT 50 -#define STM32_I2C_I2C1_IRQ_PRIORITY 5 -#define STM32_I2C_I2C2_IRQ_PRIORITY 5 -#define STM32_I2C_I2C3_IRQ_PRIORITY 5 -#define STM32_I2C_I2C4_IRQ_PRIORITY 5 +#define STM32_IRQ_I2C1_PRIORITY 5 +#define STM32_IRQ_I2C2_PRIORITY 5 +#define STM32_IRQ_I2C3_PRIORITY 5 +#define STM32_IRQ_I2C4_PRIORITY 5 #define STM32_I2C_I2C1_DMA_PRIORITY 3 #define STM32_I2C_I2C2_DMA_PRIORITY 3 #define STM32_I2C_I2C3_DMA_PRIORITY 3