aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/hal/templates/halconf.h32
1 files changed, 25 insertions, 7 deletions
diff --git a/os/hal/templates/halconf.h b/os/hal/templates/halconf.h
index d5cd47cb5..74234dfa0 100644
--- a/os/hal/templates/halconf.h
+++ b/os/hal/templates/halconf.h
@@ -59,6 +59,13 @@
#endif
/**
+ * @brief Enables the I2C subsystem.
+ */
+#if !defined(CH_HAL_USE_I2C) || defined(__DOXYGEN__)
+#define CH_HAL_USE_I2C FALSE
+#endif
+
+/**
* @brief Enables the MAC subsystem.
*/
#if !defined(CH_HAL_USE_MAC) || defined(__DOXYGEN__)
@@ -66,6 +73,13 @@
#endif
/**
+ * @brief Enables the MMC_SPI subsystem.
+ */
+#if !defined(CH_HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
+#define CH_HAL_USE_MMC_SPI TRUE
+#endif
+
+/**
* @brief Enables the PWM subsystem.
*/
#if !defined(CH_HAL_USE_PWM) || defined(__DOXYGEN__)
@@ -87,13 +101,6 @@
#endif
/**
- * @brief Enables the MMC_SPI subsystem.
- */
-#if !defined(CH_HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
-#define CH_HAL_USE_MMC_SPI TRUE
-#endif
-
-/**
* @brief Enables the UART subsystem.
*/
#if !defined(CH_HAL_USE_UART) || defined(__DOXYGEN__)
@@ -132,6 +139,17 @@
#endif
/*===========================================================================*/
+/* I2C driver related settings. */
+/*===========================================================================*/
+
+/**
+ * @brief Enables the mutual exclusion APIs on the I2C bus.
+ */
+#if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
+#define I2C_USE_MUTUAL_EXCLUSION TRUE
+#endif
+
+/*===========================================================================*/
/* MAC driver related settings. */
/*===========================================================================*/