/* Selects the specified I2C PEC position in SMBUS mode. */
void I2CPECConfig(unsigned long ulBase, unsigned long ulConfig)
/* Selects the specified I2C PEC position in SMBUS mode. */
void I2CPECConfig(unsigned long ulBase, unsigned long ulConfig)
{
    xASSERT((ulBase == I2C1_BASE) || (ulBase == I2C2_BASE));
    xHWREG(ulBase + I2C_CR1) &= ~(I2C_CR1_POS | I2C_CR1_PEC | I2C_CR1_ENPEC);
    xHWREG(ulBase + I2C_CR1) |= ulConfig;
}