AnsweredAssumed Answered

Stm32CubeF4 1.12.0 DCMI macro bug

Question asked by serb.sergey on May 24, 2016
Latest reply on Jan 19, 2017 by Imen D
Bug in file "stm32f4xx_hal_dcmi.h" at line 335: 

#define __HAL_DCMI_GET_FLAG(__HANDLE__, __FLAG__)\
((((__FLAG__) & (DCMI_SR_INDEX|DCMI_MIS_INDEX)) == 0x0U)? ((__HANDLE__)->Instance->RIS & (__FLAG__)) :\
 (((__FLAG__) & DCMI_SR_INDEX) == 0x0U)? ((__HANDLE__)->Instance->MIS & (__FLAG__)) : ((__HANDLE__)->Instance->SR & (__FLAG__)))

There are no RIS and MIS fileds in DCMI_TypeDef structure referenced by this macro. That macro should use RISR and MISR fields.