diff options
-rw-r--r-- | tools/templates/halconf_community.h | 9 | ||||
-rw-r--r-- | tools/templates/mcuconf_community.h | 10 |
2 files changed, 18 insertions, 1 deletions
diff --git a/tools/templates/halconf_community.h b/tools/templates/halconf_community.h index 631bb9f..0083cc9 100644 --- a/tools/templates/halconf_community.h +++ b/tools/templates/halconf_community.h @@ -81,13 +81,20 @@ #endif
/**
- * @brief Enables the TIMCAP subsystem.
+ * @brief Enables the COMP subsystem.
*/
#if !defined(HAL_USE_COMP) || defined(__DOXYGEN__)
#define HAL_USE_COMP FALSE
#endif
/**
+ * @brief Enables the OPAMP subsystem.
+ */
+#if !defined(HAL_USE_OPAMP) || defined(__DOXYGEN__)
+#define HAL_USE_OPAMP FALSE
+#endif
+
+/**
* @brief Enables the QEI subsystem.
*/
#if !defined(HAL_USE_QEI) || defined(__DOXYGEN__)
diff --git a/tools/templates/mcuconf_community.h b/tools/templates/mcuconf_community.h index 1ebe24c..b862d6e 100644 --- a/tools/templates/mcuconf_community.h +++ b/tools/templates/mcuconf_community.h @@ -87,6 +87,16 @@ #endif /* + * OPAMP driver system settings. + */ + +#define STM32_OPAMP_USE_OPAMP1 TRUE +#define STM32_OPAMP_USE_OPAMP2 TRUE +#define STM32_OPAMP_USE_OPAMP3 TRUE +#define STM32_OPAMP_USE_OPAMP4 TRUE +#define STM32_OPAMP_USER_TRIM_ENABLED TRUE + +/* * USBH driver system settings. */ #define STM32_OTG1_CHANNELS_NUMBER 8 |