/* Checks whether the specified PWR flag is set or not.  */
FlagStatus PWR_GetFlagStatus(uint32_t PWR_FLAG)
/* Checks whether the specified PWR flag is set or not.  */
FlagStatus PWR_GetFlagStatus(uint32_t PWR_FLAG)
{
    FlagStatus bitstatus = RESET;
    assert_param(IS_PWR_GET_FLAG(PWR_FLAG));
    if ((PWR->CSR & PWR_FLAG) != (uint32_t)RESET)
    {
        bitstatus = SET;
    }
    else
    {
        bitstatus = RESET;
    }
    return bitstatus;
}