/* Set 4 7-bit slave address mask of the specified I2C port. 
The  */
void I2CSlaveOwnAddressMaskSet(unsigned long ulBase, unsigned char ucSlaveNum, unsigned char ucSlaveAddrMask)
/* Set 4 7-bit slave address mask of the specified I2C port. 
The  */
void I2CSlaveOwnAddressMaskSet(unsigned long ulBase, unsigned char ucSlaveNum, unsigned char ucSlaveAddrMask)
{
    unsigned long ulTemp[4] = {0x24, 0x28, 0x2C, 0x30};
    xASSERT((ulBase == I2C0_BASE));
    xASSERT((ucSlaveNum == 0) || (ucSlaveNum == 1) ||
            (ucSlaveNum == 2) || (ucSlaveNum == 3));
    xHWREG(ulBase + ulTemp[ucSlaveNum]) |= (ucSlaveAddrMask << 1);
}