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

/*********************************************************************
*    Function Name:  StopI2C                                        
*    Description:    This routine generates Stop condition 
*                    during master mode.                     
*    Parameters:     void                                   
*    Return Value:   void
*********************************************************************/

#ifdef _I2C_V2_1

void StopI2C1(void)
{
     I2C1CONbits.PEN = 1;   /* initiate Stop on SDA and SCL pins */
}




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