#if defined(__PIC24F__)
#include <p24Fxxxx.h>
#endif
#include <i2c.h>

/***********************************************************************
*    Function Name:  MasterWaitForIntrI2C2
*    Description:    This routine will wait for Master interrupt request 
*                    and then clear interrupt Flag.
*    Parameters:     None
*    Return Value:   None
************************************************************************/

#ifdef _I2C_V2_2

void MasterWaitForIntrI2C2(void)
{
   while(0 == IFS3bits.MI2C2IF);
   IFS3bits.MI2C2IF = 0;
}




#else
#warning "Does not build on this target"
#endif
