This is an automated email from the ASF dual-hosted git repository.

raiden00 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 85923c17973 arch/arm/stm32f0l0g0/: Fix I2C IRQ numbers
85923c17973 is described below

commit 85923c179733714ba3864b2f8112ed30486938a9
Author: Konstantin Tyurin <konstan...@pluraf.com>
AuthorDate: Mon Aug 4 21:51:33 2025 +0200

    arch/arm/stm32f0l0g0/: Fix I2C IRQ numbers
    
    This patch sets a correct interrupt vector number
    for each I2C controller.
    
    Signed-off-by: Konstantin Tyurin <konstan...@pluraf.com>
---
 arch/arm/src/stm32f0l0g0/stm32_i2c.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/src/stm32f0l0g0/stm32_i2c.c 
b/arch/arm/src/stm32f0l0g0/stm32_i2c.c
index dc477f4dabb..2c7af004e14 100644
--- a/arch/arm/src/stm32f0l0g0/stm32_i2c.c
+++ b/arch/arm/src/stm32f0l0g0/stm32_i2c.c
@@ -534,7 +534,7 @@ static const struct stm32_i2c_config_s stm32_i2c2_config =
   .scl_pin       = GPIO_I2C2_SCL,
   .sda_pin       = GPIO_I2C2_SDA,
 #ifndef CONFIG_I2C_POLLED
-  .irq        = STM32_IRQ_I2C1
+  .irq        = STM32_IRQ_I2C2
 #endif
 };
 
@@ -569,7 +569,7 @@ static const struct stm32_i2c_config_s stm32_i2c3_config =
   .scl_pin       = GPIO_I2C3_SCL,
   .sda_pin       = GPIO_I2C3_SDA,
 #ifndef CONFIG_I2C_POLLED
-  .irq        = STM32_IRQ_I2C1
+  .irq        = STM32_IRQ_I2C3
 #endif
 };
 
@@ -604,7 +604,7 @@ static const struct stm32_i2c_config_s stm32_i2c4_config =
   .scl_pin       = GPIO_I2C4_SCL,
   .sda_pin       = GPIO_I2C4_SDA,
 #ifndef CONFIG_I2C_POLLED
-  .irq        = STM32_IRQ_I2C1
+  .irq        = STM32_IRQ_I2C4
 #endif
 };
 

Reply via email to