/* Checks whether the specified IWDG flag is set or not.  */
FlagStatus IWDG_GetFlagStatus(u16 flag)
/* Checks whether the specified IWDG flag is set or not.  */
FlagStatus IWDG_GetFlagStatus(u16 flag)
{
    return ((IWDG->SR & flag) != (u32)RESET) ? SET : RESET;
}