aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-06-23 18:05:20 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-06-23 18:05:20 +0000
commitfbeff97d9230af12326c94e3875adf9438f16ed4 (patch)
tree912dfad317c006ca57113725cf911395ed58e8be /os/hal/src
parent3f2e823d2aafa5e8ab70fd51b643de12c8989e76 (diff)
downloadChibiOS-fbeff97d9230af12326c94e3875adf9438f16ed4.tar.gz
ChibiOS-fbeff97d9230af12326c94e3875adf9438f16ed4.tar.bz2
ChibiOS-fbeff97d9230af12326c94e3875adf9438f16ed4.zip
I2C. Variables shared among I2C1 and I2C2 interrupt handlers moved to driver structure.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3070 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src')
-rw-r--r--os/hal/src/i2c.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/hal/src/i2c.c b/os/hal/src/i2c.c
index 4e3f5e5b9..56e2f4484 100644
--- a/os/hal/src/i2c.c
+++ b/os/hal/src/i2c.c
@@ -69,6 +69,8 @@ void i2cObjectInit(I2CDriver *i2cp) {
i2cp->id_state = I2C_STOP;
i2cp->id_config = NULL;
+ i2cp->rxBuffp = NULL;
+ i2cp->txBuffp = NULL;
i2cp->id_slave_config = NULL;
#if I2C_USE_WAIT