aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-10-31 14:05:31 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-10-31 14:05:31 +0000
commita53d698bb356e821112d11c8c1f0a43f77f826cc (patch)
treea3c6a7d6d4eb7af64ccb553e7054bea631020d6a /os/hal/templates
parent4f1b492119f90b34fdbc13e88d892612c21cb08e (diff)
downloadChibiOS-a53d698bb356e821112d11c8c1f0a43f77f826cc.tar.gz
ChibiOS-a53d698bb356e821112d11c8c1f0a43f77f826cc.tar.bz2
ChibiOS-a53d698bb356e821112d11c8c1f0a43f77f826cc.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2314 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/templates')
-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. */
/*===========================================================================*/