Skip to content

Commit b753262

Browse files
jeromecoutantadbridge
authored andcommitted
STM32F3 : compilation issue
Issue comes only when ST HAL macro USE_FULL_ASSERT is enabled
1 parent 8abe9a4 commit b753262

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_comp_ex.h

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -442,16 +442,6 @@
442442
* @{
443443
*/
444444
#define COMP_WINDOWMODE_DISABLE (0x00000000U) /*!< Window mode disabled */
445-
#define COMP_WINDOWMODE_ENABLE COMP_CSR_COMPxWNDWEN /*!< Window mode enabled: non inverting input of comparator X (x=2U,4,6U)
446-
is connected to the non inverting input of comparator X-1U */
447-
/**
448-
* @}
449-
*/
450-
#elif defined(STM32F302xE) || defined(STM32F303xE) || defined(STM32F398xx)
451-
/** @defgroup COMPEx_WindowMode COMP Extended WindowMode (STM32F302xE/STM32F303xE/STM32F398xx Product devices)
452-
* @{
453-
*/
454-
#define COMP_WINDOWMODE_DISABLE (0x00000000U) /*!< Window mode disabled */
455445
#define COMP_WINDOWMODE_ENABLE COMP_CSR_COMPxWNDWEN /*!< Window mode enabled: non inverting input of comparator X (x=2U,4,6U)
456446
is connected to the non inverting input of comparator X-1U */
457447
/**
@@ -2395,8 +2385,7 @@
23952385
|| \
23962386
(((INPUT) == COMP_NONINVERTINGINPUT_IO1)))
23972387

2398-
#define IS_COMP_WINDOWMODE(WINDOWMODE) (((WINDOWMODE) == COMP_WINDOWMODE_DISABLE) || \
2399-
((WINDOWMODE) == COMP_WINDOWMODE_ENABLE))
2388+
#define IS_COMP_WINDOWMODE(WINDOWMODE) ((WINDOWMODE) == (WINDOWMODE)) /*!< Not available: check always true */
24002389

24012390
#define IS_COMP_MODE(MODE) ((MODE) == (MODE)) /*!< Not available: check always true */
24022391

0 commit comments

Comments
 (0)