/* Init interrupts callback for the specified I2C Port.  */
void I2CIntCallbackInit(unsigned long ulBase, xtEventCallback xtI2CCallback)
/* Init interrupts callback for the specified I2C Port.  */
void I2CIntCallbackInit(unsigned long ulBase, xtEventCallback xtI2CCallback)
{
    xASSERT((ulBase == I2C1_BASE) || (ulBase == I2C2_BASE));
    switch(ulBase)
    {
        case I2C1_BASE:
        {
            g_pfnI2CHandlerCallbacks[0] = xtI2CCallback;
            break;
        }
        case I2C2_BASE:
        {
            g_pfnI2CHandlerCallbacks[1] = xtI2CCallback;
            break;
        }
        default:
            break;
    }
}