diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-04-03 19:25:00 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-04-03 19:25:00 +0200 |
commit | 08296d249c3b0dffa4a0abe5ee1d55e0d576c14a (patch) | |
tree | 6cdf7135e6ad984d0c02f1f854947548255f9209 /mcuconf.h | |
parent | f228e3268b1cfa28bdaec86d0d3bf22edcdef661 (diff) |
Reading ITG-3200 to USB.
Diffstat (limited to 'mcuconf.h')
-rw-r--r-- | mcuconf.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -141,3 +141,15 @@ #define STM32_USB_LOW_POWER_ON_SUSPEND FALSE
#define STM32_USB_USB1_HP_IRQ_PRIORITY 6
#define STM32_USB_USB1_LP_IRQ_PRIORITY 14
+
+/*
+ * I2C driver system settings.
+ */
+#define STM32_I2C_USE_I2C1 TRUE
+#define STM32_I2C_USE_I2C2 TRUE
+#define STM32_I2C_I2C1_IRQ_PRIORITY 11
+#define STM32_I2C_I2C2_IRQ_PRIORITY 11
+#define STM32_I2C_I2C1_DMA_PRIORITY 4
+#define STM32_I2C_I2C2_DMA_PRIORITY 4
+#define STM32_I2C_I2C1_DMA_ERROR_HOOK() chSysHalt()
+#define STM32_I2C_I2C2_DMA_ERROR_HOOK() chSysHalt()
|