diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-01-08 19:36:35 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-01-08 19:36:35 +0000 |
commit | 16d354e6870b57a1f189fa565918e64c15a458eb (patch) | |
tree | 63482ff3e8db56c6c96426429aa42820c06c33cb | |
parent | 55cdd3db536454f7431bd839a7ecc68e388cccdc (diff) | |
download | ChibiOS-16d354e6870b57a1f189fa565918e64c15a458eb.tar.gz ChibiOS-16d354e6870b57a1f189fa565918e64c15a458eb.tar.bz2 ChibiOS-16d354e6870b57a1f189fa565918e64c15a458eb.zip |
I2C. Added external fields hook in driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3769 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/platforms/STM32/i2c_lld.c | 2 | ||||
-rw-r--r-- | os/hal/platforms/STM32/i2c_lld.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32/i2c_lld.c b/os/hal/platforms/STM32/i2c_lld.c index f00dfdc89..ac80ba1fb 100644 --- a/os/hal/platforms/STM32/i2c_lld.c +++ b/os/hal/platforms/STM32/i2c_lld.c @@ -32,7 +32,6 @@ #include "ch.h" #include "hal.h" -#include "i2c_lld.h" #if HAL_USE_I2C || defined(__DOXYGEN__) @@ -295,7 +294,6 @@ static uint32_t i2c_get_event(I2CDriver *i2cp) { return (I2C_EV_MASK & (regSR1 | (regSR2 << 16))); } - /** * @brief I2C shared ISR code. * diff --git a/os/hal/platforms/STM32/i2c_lld.h b/os/hal/platforms/STM32/i2c_lld.h index f2589775d..c3b6c7bba 100644 --- a/os/hal/platforms/STM32/i2c_lld.h +++ b/os/hal/platforms/STM32/i2c_lld.h @@ -370,6 +370,9 @@ struct I2CDriver{ Semaphore semaphore;
#endif
#endif /* I2C_USE_MUTUAL_EXCLUSION */
+#if defined(I2C_DRIVER_EXT_FIELDS)
+ I2C_DRIVER_EXT_FIELDS
+#endif
/* End of the mandatory fields.*/
/**
* @brief Thread waiting for I/O completion.
|