From a53d698bb356e821112d11c8c1f0a43f77f826cc Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 31 Oct 2010 14:05:31 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2314 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/templates/halconf.h | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) (limited to 'os/hal/templates') 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 @@ -58,6 +58,13 @@ #define CH_HAL_USE_CAN TRUE #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. */ @@ -65,6 +72,13 @@ #define CH_HAL_USE_MAC TRUE #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. */ @@ -86,13 +100,6 @@ #define CH_HAL_USE_SPI TRUE #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. */ @@ -131,6 +138,17 @@ #define CAN_USE_SLEEP_MODE TRUE #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. */ /*===========================================================================*/ -- cgit v1.2.3