/* Enable or Disable the I2C wake-up function of the specified I2C port. 
The  */
void I2CWakeupEnable(unsigned long ulBase, xtBoolean bEnable)
/* Enable or Disable the I2C wake-up function of the specified I2C port. 
The  */
void I2CWakeupEnable(unsigned long ulBase, xtBoolean bEnable)
{
    xASSERT((ulBase == I2C0_BASE) || (ulBase == I2C1_BASE));
    if(bEnable){
    	xHWREG(ulBase + I2C_WKUPCON) |= I2C_WKUPCON_WKUPEN;
    } else {
    	xHWREG(ulBase + I2C_WKUPCON) &= ~I2C_WKUPCON_WKUPEN;
	}
}