aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-03 17:08:01 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-03 17:08:01 +0000
commitb923d10f0e377094d8fbb4ac7aa8b6b9f4ac36b2 (patch)
tree438becd9699e8ea44f8ed97675fc5c2498508aa6 /os/hal/platforms
parent9a5d5cc7f7daf6bbd754b81f24201148c2442fa6 (diff)
downloadChibiOS-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/hal/platforms')
-rw-r--r--os/hal/platforms/STM32/i2c_lld.c2
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;