From 4bcff1c283004b10e7a39e855da996621f9eec6d Mon Sep 17 00:00:00 2001 From: barthess Date: Fri, 5 Aug 2011 10:42:42 +0000 Subject: [PATCH] I2C. Added optional fields hook to I2CSlaveConfig structure. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3189 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/include/i2c.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/os/hal/include/i2c.h b/os/hal/include/i2c.h index 73f633353..1ff50f471 100644 --- a/os/hal/include/i2c.h +++ b/os/hal/include/i2c.h @@ -145,6 +145,9 @@ struct I2CSlaveConfig{ * If set to @p NULL then the callback is disabled. */ i2cerrorcallback_t id_err_callback; +#if defined(I2C_SLAVECONFIG_EXT_FIELDS) + I2C_SLAVECONFIG_EXT_FIELDS +#endif };