/* Checks whether the specified PMU flag is set or not.  */
uint8_t PMU_ReadStatusFlag(PMU_FLAG_T flag)
/* Checks whether the specified PMU flag is set or not.  */
uint8_t PMU_ReadStatusFlag(PMU_FLAG_T flag)
{
    uint8_t bit;
    if ((PMU->CSTS & flag) != (uint32_t)RESET)
    {
        bit = SET;
    }
    else
    {
        bit = RESET;
    }
    return bit;
}