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