From 16d354e6870b57a1f189fa565918e64c15a458eb Mon Sep 17 00:00:00 2001 From: barthess Date: Sun, 8 Jan 2012 19:36:35 +0000 Subject: 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 --- os/hal/platforms/STM32/i2c_lld.c | 2 -- os/hal/platforms/STM32/i2c_lld.h | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'os/hal/platforms/STM32') 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. -- cgit v1.2.3