From 2204395064d06f3683881b41b97e4343103371d3 Mon Sep 17 00:00:00 2001 From: Fabien Poussin Date: Tue, 1 Oct 2019 19:50:21 +0200 Subject: Updated config templates --- tools/templates/halconf_community.h | 9 ++++++++- tools/templates/mcuconf_community.h | 10 ++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) 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,12 +81,19 @@ #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. */ 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 @@ -86,6 +86,16 @@ #define STM32_DISABLE_EXTI33_HANDLER #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. */ -- cgit v1.2.3