diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-09-21 17:55:08 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-09-21 17:55:08 +0000 |
commit | e8f1a8bff986a170bb03cd2f10bb08d90dab35f0 (patch) | |
tree | f7c42849aaaa94ea13f5f6135ca35ab641088eaa /nuttx/arch | |
parent | 99bc5e453b0145f39528d73bae18fc5e6743cda4 (diff) | |
download | px4-firmware-e8f1a8bff986a170bb03cd2f10bb08d90dab35f0.tar.gz px4-firmware-e8f1a8bff986a170bb03cd2f10bb08d90dab35f0.tar.bz2 px4-firmware-e8f1a8bff986a170bb03cd2f10bb08d90dab35f0.zip |
Recent I2C changes for F4 broke F1
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5170 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch')
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32_i2c.c | 3 |
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 |