/* Receives a byte that has been sent to the I2C Master(Blocking). */
unsigned long I2CDataGetBlocking(unsigned long ulBase)
/* Receives a byte that has been sent to the I2C Master(Blocking). */
unsigned long I2CDataGetBlocking(unsigned long ulBase)
{
    xASSERT((ulBase == I2C1_BASE) || (ulBase == I2C2_BASE));
    while((xHWREG(ulBase + I2C_SR1) & I2C_SR1_RXNE) == 0);
    return(xHWREG(ulBase + I2C_DR));
}