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