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. */ /*===========================================================================*/