/* param base XBARA peripheral address. param mask the status flags to clear.  */
void XBARA_ClearStatusFlags(XBARA_Type *base, uint32_t mask)
/* param base XBARA peripheral address. param mask the status flags to clear.  */
void XBARA_ClearStatusFlags(XBARA_Type *base, uint32_t mask)
{
    uint16_t regVal;
    regVal = (base->CTRL0);
    regVal &= (uint16_t)(~(XBARA_CTRL0_STS0_MASK | XBARA_CTRL0_STS1_MASK));
    regVal |= (uint16_t)(mask & (XBARA_CTRL0_STS0_MASK | XBARA_CTRL0_STS1_MASK));
    base->CTRL0 = regVal;
    regVal = (base->CTRL1);
    regVal &= (uint16_t)(~(XBARA_CTRL1_STS2_MASK | XBARA_CTRL1_STS3_MASK));
    regVal |= (uint16_t)((mask >> 16U) & (XBARA_CTRL1_STS2_MASK | XBARA_CTRL1_STS3_MASK));
    base->CTRL1 = regVal;
}