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



#ifdef _PPI_PMP_V1


/******************************************************************************
 * Function:        PMPMasterRead
 *
 * PreCondition:    None
 *
 * Input:           None
 *
 * Output:          8-bit value read from external device
 *
 * Side Effects:    None
 *
 * Overview:        
 * 					
 * Note:			Use in MASTER mode 1 or 2, MODE[1:0] = 10, 11 
 *****************************************************************************/
WORD PMPMasterRead(void)
{
	while(!PMMODEbits.BUSY)
	
	return(PMDIN1);
}

/* end of file */
#else
#warning "Does not build on this target"
#endif
