summaryrefslogtreecommitdiff
path: root/mcuconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'mcuconf.h')
-rw-r--r--mcuconf.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/mcuconf.h b/mcuconf.h
index 960c09a..b25409a 100644
--- a/mcuconf.h
+++ b/mcuconf.h
@@ -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()