AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/at91sam7s/timer.c
static void Timer0IrqHandler(
    void)
{

    volatile AT91PS_TC pTC = AT91C_BASE_TC0;    /* pointer to timer channel 0 register structure */
    volatile unsigned int dummy;        /* temporary */

    /* read TC0 Status Register to clear interrupt */
    dummy = pTC->TC_SR;
    /* increment the tick count */
    Timer_Milliseconds++;
    if (SilenceTime < 60000)
        SilenceTime++;
}
/*  ***************************************************************************** */
/* */
/*     Timer 0 Interrupt Service Routine */
/* */
/*     Entered when Timer0 RC compare interrupt asserts */
/* */
/*  Author:  James P Lynch  May 12, 2007 */
/*  Modified by Steve Karg */
/*    simplified and changed to a millisecond count-up timer */
/*  ***************************************************************************** */
Timer 0 Interrupt Service Routine

Entered when Timer0 RC compare interrupt asserts

James P Lynch  May 12, 2007
Modified by Steve Karg
simplified and changed to a millisecond count-up timer
Timer 0 Interrupt Service Routine Entered when Timer0 RC compare interrupt asserts James P Lynch May 12 2007 Modified by Steve Karg simplified and changed to a millisecond count - up timer
static void Timer0IrqHandler(
    void)
{
    volatile AT91PS_TC pTC = AT91C_BASE_TC0;    
    volatile unsigned int dummy;        
    dummy = pTC->TC_SR;
    Timer_Milliseconds++;
    if (SilenceTime < 60000)
        SilenceTime++;
}
static void Timer0IrqHandler ( void ) { volatile AT91PS_TC pTC = AT91C_BASE_TC0 ; volatile unsigned int dummy ; dummy = pTC -> TC_SR ; Timer_Milliseconds ++ ; if ( SilenceTime < 60000 ) SilenceTime ++ ; }
Timer 0 Interrupt Service Routine
Timer 0 Interrupt Service Routine
/* pointer to timer channel 0 register structure */ /* temporary */ /* read TC0 Status Register to clear interrupt */ /* increment the tick count */