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

/* These devices support Timer 5 */
#ifdef _TIMER5

/********************************************************************
*    Function Name:  ReadTimer5                                     *
*    Description:    This routine reads the 16-bit value from       *
*                    Timer5 Register.                               *
*    Parameters:     None                                           *
*    Return Value:   unsigned int: Timer  16-bit value              *
********************************************************************/

unsigned int ReadTimer5(void)
{
    return (TMR5);      /* Return the Timer5 register */
}

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