diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-09-09 19:50:18 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-09-09 19:50:18 +0000 |
commit | b90f21b46e4efed68ba80a6ecc8b536de2a2fd5a (patch) | |
tree | 4c5694a1a551bf2cd366971d1ff991460efb3e4b /nuttx/arch/arm/src/stm32/chip/stm32_i2c.h | |
parent | 578a23b761f0020c31fe604c172de27b27476dce (diff) | |
download | px4-nuttx-b90f21b46e4efed68ba80a6ecc8b536de2a2fd5a.tar.gz px4-nuttx-b90f21b46e4efed68ba80a6ecc8b536de2a2fd5a.tar.bz2 px4-nuttx-b90f21b46e4efed68ba80a6ecc8b536de2a2fd5a.zip |
Only enable I2C interrupts when a transfer is started
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3945 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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/stm32/chip/stm32_i2c.h b/nuttx/arch/arm/src/stm32/chip/stm32_i2c.h index 2049ac1f4..b637dc507 100644 --- a/nuttx/arch/arm/src/stm32/chip/stm32_i2c.h +++ b/nuttx/arch/arm/src/stm32/chip/stm32_i2c.h @@ -107,6 +107,8 @@ #define I2C_CR2_DMAEN (1 << 11) /* Bit 11: DMA Requests Enable */ #define I2C_CR2_LAST (1 << 12) /* Bit 12: DMA Last Transfer */ +#define I2C_CR2_ALLINTS (I2C_CR2_ITERREN|I2C_CR2_ITEVFEN|I2C_CR2_ITBUFEN) + /* Own address register 1 */ #define I2C_OAR1_ADD0 (1 << 0) /* Bit 0: Interface Address */ |