/* Checks whether the specified flash flag is set or not.  */
uint8_t FMC_ReadStatusFlag(FMC_FLAG_T flag)
/* Checks whether the specified flash flag is set or not.  */
uint8_t FMC_ReadStatusFlag(FMC_FLAG_T flag)
{
    uint8_t status;
    if (flag & 0xff)
    {
        status = FMC->STS & flag;
    }
    else
    {
        status = FMC->OBCS & flag;
    }
    if (status)
    {
        return SET;
    }
    return RESET;
}