diff --git a/sw/airborne/arch/stm32/mcu_periph/i2c_arch.c b/sw/airborne/arch/stm32/mcu_periph/i2c_arch.c index 125b7350c8..8421e98f8f 100644 --- a/sw/airborne/arch/stm32/mcu_periph/i2c_arch.c +++ b/sw/airborne/arch/stm32/mcu_periph/i2c_arch.c @@ -282,9 +282,11 @@ static inline void on_status_restart_requested(struct i2c_periph *periph, struct } } +void i2c_event(void) +{ +} - -static inline void i2c_event(struct i2c_periph *p, uint32_t event) +static inline void i2c_driver_event(struct i2c_periph *p, uint32_t event) { struct i2c_transaction* trans = p->trans[p->trans_extract_idx]; switch (p->status) { @@ -504,7 +506,7 @@ void i2c1_hw_init(void) { void i2c1_ev_irq_handler(void) { uint32_t event = I2C_GetLastEvent(I2C1); - i2c_event(&i2c1, event); + i2c_driver_event(&i2c1, event); } @@ -581,7 +583,7 @@ void i2c2_hw_init(void) { void i2c2_ev_irq_handler(void) { uint32_t event = I2C_GetLastEvent(I2C2); - i2c_event(&i2c2, event); + i2c_driver_event(&i2c2, event); } void i2c2_er_irq_handler(void) {