summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-09-21 17:55:08 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-09-21 17:55:08 +0000
commit36558e1b5eff6065e6d9af90e8bd65b7f6092c3d (patch)
treef7c42849aaaa94ea13f5f6135ca35ab641088eaa
parent6719602c285f879013aaee768113a88dfba626c3 (diff)
downloadnuttx-36558e1b5eff6065e6d9af90e8bd65b7f6092c3d.tar.gz
nuttx-36558e1b5eff6065e6d9af90e8bd65b7f6092c3d.tar.bz2
nuttx-36558e1b5eff6065e6d9af90e8bd65b7f6092c3d.zip
Recent I2C changes for F4 broke F1
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5170 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_i2c.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_i2c.c b/nuttx/arch/arm/src/stm32/stm32_i2c.c
index 12a036f80..c44a823db 100644
--- a/nuttx/arch/arm/src/stm32/stm32_i2c.c
+++ b/nuttx/arch/arm/src/stm32/stm32_i2c.c
@@ -1574,13 +1574,14 @@ static int stm32_i2c_process(FAR struct i2c_dev_s *dev, FAR struct i2c_msg_s *ms
struct stm32_i2c_inst_s *inst = (struct stm32_i2c_inst_s *)dev;
FAR struct stm32_i2c_priv_s *priv = inst->priv;
uint32_t status = 0;
+ uint32_t ahbenr;
int errval = 0;
ASSERT(count);
/* Disable FSMC that shares a pin with I2C1 (LBAR) */
- (void)stm32_i2c_disablefsmc(priv);
+ ahbenr = stm32_i2c_disablefsmc(priv);
/* Wait for any STOP in progress. NOTE: If we have to disable the FSMC
* then we cannot do this at the top of the loop, unfortunately. The STOP