diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-01-08 19:32:32 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-01-08 19:32:32 +0000 |
commit | 55cdd3db536454f7431bd839a7ecc68e388cccdc (patch) | |
tree | 53e3fdc50c81fd8309ef7a67f93d81e64f3151e3 | |
parent | f3a702f1f67bd927fe711aa5433bb83339b5af9a (diff) | |
download | ChibiOS-55cdd3db536454f7431bd839a7ecc68e388cccdc.tar.gz ChibiOS-55cdd3db536454f7431bd839a7ecc68e388cccdc.tar.bz2 ChibiOS-55cdd3db536454f7431bd839a7ecc68e388cccdc.zip |
I2C. Added forgotten DMA definitions.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3768 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/platforms/STM32/i2c_lld.h | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32/i2c_lld.h b/os/hal/platforms/STM32/i2c_lld.h index 1112d2901..f2589775d 100644 --- a/os/hal/platforms/STM32/i2c_lld.h +++ b/os/hal/platforms/STM32/i2c_lld.h @@ -101,7 +101,37 @@ #endif
/**
- * @brief I2C1 DMA error hook.
+* @brief I2C1 DMA priority (0..3|lowest..highest).
+* @note The priority level is used for both the TX and RX DMA streams but
+* because of the streams ordering the RX stream has always priority
+* over the TX stream.
+*/
+#if !defined(STM32_I2C_I2C1_DMA_PRIORITY) || defined(__DOXYGEN__)
+#define STM32_I2C_I2C1_DMA_PRIORITY 1
+#endif
+
+/**
+* @brief I2C2 DMA priority (0..3|lowest..highest).
+* @note The priority level is used for both the TX and RX DMA streams but
+* because of the streams ordering the RX stream has always priority
+* over the TX stream.
+*/
+#if !defined(STM32_I2C_I2C2_DMA_PRIORITY) || defined(__DOXYGEN__)
+#define STM32_I2C_I2C2_DMA_PRIORITY 1
+#endif
+
+/**
+* @brief I2C3 DMA priority (0..3|lowest..highest).
+* @note The priority level is used for both the TX and RX DMA streams but
+* because of the streams ordering the RX stream has always priority
+* over the TX stream.
+*/
+#if !defined(STM32_I2C_I2C3_DMA_PRIORITY) || defined(__DOXYGEN__)
+#define STM32_I2C_I2C3_DMA_PRIORITY 1
+#endif
+
+/**
+ * @brief I2C DMA error hook.
* @note The default action for DMA errors is a system halt because DMA
* error can only happen because programming errors.
*/
|