diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-01-03 17:08:01 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-01-03 17:08:01 +0000 |
commit | b923d10f0e377094d8fbb4ac7aa8b6b9f4ac36b2 (patch) | |
tree | 438becd9699e8ea44f8ed97675fc5c2498508aa6 /os | |
parent | 9a5d5cc7f7daf6bbd754b81f24201148c2442fa6 (diff) | |
download | ChibiOS-b923d10f0e377094d8fbb4ac7aa8b6b9f4ac36b2.tar.gz ChibiOS-b923d10f0e377094d8fbb4ac7aa8b6b9f4ac36b2.tar.bz2 ChibiOS-b923d10f0e377094d8fbb4ac7aa8b6b9f4ac36b2.zip |
I2C. Small style improvements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3719 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/platforms/STM32/i2c_lld.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32/i2c_lld.c b/os/hal/platforms/STM32/i2c_lld.c index ec626e329..9a7cf2873 100644 --- a/os/hal/platforms/STM32/i2c_lld.c +++ b/os/hal/platforms/STM32/i2c_lld.c @@ -496,7 +496,9 @@ void i2c_lld_start(I2CDriver *i2cp) { /* If in stopped state then enables the I2C and DMA clocks.*/ if (i2cp->state == I2C_STOP) { + i2c_lld_reset(i2cp); + #if STM32_I2C_USE_I2C1 if (&I2CD1 == i2cp) { bool_t b; |