/* Gets the PEC value for the specified I2C */
unsigned char I2CPECGet(unsigned long ulBase)
/* Gets the PEC value for the specified I2C */
unsigned char I2CPECGet(unsigned long ulBase)
{
    xASSERT((ulBase == I2C1_BASE) || (ulBase == I2C2_BASE));
    return ((xHWREG(ulBase + I2C_SR2) & I2C_SR2_PEC_M) >> 8);
}