aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/hal/include/i2c.h1
-rw-r--r--os/hal/platforms/STM32/i2c_lld.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/os/hal/include/i2c.h b/os/hal/include/i2c.h
index 066ee4a5f..8f8ae57f6 100644
--- a/os/hal/include/i2c.h
+++ b/os/hal/include/i2c.h
@@ -146,7 +146,6 @@ struct I2CSlaveConfig{
i2cblock_t *rxbuf; /*!< Pointer to receive buffer. */
i2cblock_t *txbuf; /*!< Pointer to transmit buffer.*/
- EventSource *sevent; /*!< Status Change @p EventSource.*/
};
diff --git a/os/hal/platforms/STM32/i2c_lld.h b/os/hal/platforms/STM32/i2c_lld.h
index 0ad317876..7083bf562 100644
--- a/os/hal/platforms/STM32/i2c_lld.h
+++ b/os/hal/platforms/STM32/i2c_lld.h
@@ -175,6 +175,8 @@ struct I2CDriver{
uint8_t slave_addr1;/*!< 7-bit address of the slave with r\w bit.*/
uint8_t slave_addr2;/*!< Used in 10-bit address mode. */
+ EventSource sevent; /*!< Status Change @p EventSource.*/
+
/*********** End of the mandatory fields. **********************************/
/**