summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/chip/stm32_i2c.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-08-30 19:48:47 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-08-30 19:48:47 +0000
commit0fb1d700e376c74efab18ea5f70a88eabececde1 (patch)
tree496df0236d9a88fabc2f7c5e5a2e0d685e99598d /nuttx/arch/arm/src/stm32/chip/stm32_i2c.h
parent7b01904121be6cb88d28005a77da9c1815593925 (diff)
downloadpx4-nuttx-0fb1d700e376c74efab18ea5f70a88eabececde1.tar.gz
px4-nuttx-0fb1d700e376c74efab18ea5f70a88eabececde1.tar.bz2
px4-nuttx-0fb1d700e376c74efab18ea5f70a88eabececde1.zip
I2C tool no longer hangs on dev command
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3930 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32/chip/stm32_i2c.h')
-rw-r--r--nuttx/arch/arm/src/stm32/chip/stm32_i2c.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/stm32/chip/stm32_i2c.h b/nuttx/arch/arm/src/stm32/chip/stm32_i2c.h
index 00a24b355..8e40a3598 100644
--- a/nuttx/arch/arm/src/stm32/chip/stm32_i2c.h
+++ b/nuttx/arch/arm/src/stm32/chip/stm32_i2c.h
@@ -147,7 +147,8 @@
#define I2C_SR1_TIMEOUT (1 << 14) /* Bit 14: Timeout or Tlow Error */
#define I2C_SR1_SMBALERT (1 << 15) /* Bit 15: SMBus Alert */
-#define I2C_SR1_ERRORMASK (I2C_SR1_BERR|I2C_SR1_ARLO|I2C_SR1_AF|I2C_SR1_OVR|I2C_SR1_PECERR)
+#define I2C_SR1_ERRORMASK (I2C_SR1_BERR|I2C_SR1_ARLO|I2C_SR1_AF|I2C_SR1_OVR|\
+ I2C_SR1_PECERR|I2C_SR1_TIMEOUT|I2C_SR1_SMBALERT)
/* Status register 2 */