AN370
Rev. 1.0
35
wPtsButton = wBsr_Pop();
}
RTC ISR:
/*
*==============================================================================
*
* VISIBLE FUNCTIONS:
*
*/
void vIsr_Rtc
(
void
)
interrupt INTERRUPT_RTC using 1 /* Use RB1 for ISR */
/*------------------------------------------------------------------------------
*
* FUNCTION DESCRIPTION:
* This is the interrupt service routine for RTC.
*
*------------------------------------------------------------------------------
*/
{
/*
*------------------------------------------------------------------------------
*
* VARIABLES:
*
*------------------------------------------------------------------------------
*/
/* Clear the RTL interrupt flag */
RTC_CTRL &= (~M_RTC_INT);
/* Since we are ticking at 5ms, add 5 to the master time to keep
* master time units as [ms] */
vSys_IncMasterTime( 5UL );