From e9a57f404270accc977470ff98732b5bfe207151 Mon Sep 17 00:00:00 2001 From: andreika-git Date: Mon, 15 Apr 2019 15:59:29 +0300 Subject: [PATCH] fix Simulator + HAL_USE_COMP (#760) --- simulator/halconf.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/simulator/halconf.h b/simulator/halconf.h index 07718cf692..d660dc94d9 100644 --- a/simulator/halconf.h +++ b/simulator/halconf.h @@ -177,6 +177,13 @@ #define HAL_USE_WDG FALSE #endif +/** + * @brief Enables the COMP subsystem. + */ +#if !defined(HAL_USE_COMP) || defined(__DOXYGEN__) +#define HAL_USE_COMP FALSE +#endif + /*===========================================================================*/ /* ADC driver related settings. */ /*===========================================================================*/