void Timer0IntHandler( void );\r
\r
/* Stores the value of the maximum recorded jitter between interrupts. */\r
-unsigned portLONG ulMaxJitter = 0;\r
+volatile unsigned portLONG ulMaxJitter = 0;\r
\r
/*-----------------------------------------------------------*/\r
\r
/* Just used to measure time. */\r
TimerLoadSet(TIMER1_BASE, TIMER_A, timerMAX_32BIT_VALUE );\r
\r
+ /* Ensure interrupts do not start until the scheduler is running. */\r
+ portDISABLE_INTERRUPTS();\r
+ \r
/* The rate at which the timer will interrupt. */\r
ulFrequency = configCPU_CLOCK_HZ / timerINTERRUPT_FREQUENCY; \r
TimerLoadSet( TIMER0_BASE, TIMER_A, ulFrequency );\r
\r
void Timer0IntHandler( void )\r
{\r
-unsigned portLONG ulDifference, ulCurrentCount;\r
+unsigned portLONG ulDifference;\r
+volatile unsigned portLONG ulCurrentCount;\r
static portLONG ulMaxDifference = 0, ulLastCount = 0;\r
\r
/* We use the timer 1 counter value to measure the clock cycles between\r