/* Checks whether the specified FLASH flag is set or not.  */
FlagStatus FLASH_GetFlagStatus(uint32_t FLASH_FLAG)
/* Checks whether the specified FLASH flag is set or not.  */
FlagStatus FLASH_GetFlagStatus(uint32_t FLASH_FLAG)
{
    FlagStatus bitstatus = RESET;
    assert_param(IS_FLASH_GET_FLAG(FLASH_FLAG));
    if ((FLASH->SR & FLASH_FLAG) != (uint32_t)RESET)
    {
        bitstatus = SET;
    }
    else
    {
        bitstatus = RESET;
    }
    return bitstatus;
}