\r
/*-----------------------------------------------------------*/\r
\r
-void vSetupTimer( void )\r
+void vSetupHighFrequencyTimer( void )\r
{\r
unsigned long ulFrequency;\r
\r
{\r
unsigned portLONG ulDifference;\r
volatile unsigned portLONG ulCurrentCount;\r
-static portLONG ulMaxDifference = 0, ulLastCount = 0;\r
+static unsigned portLONG ulMaxDifference = 0, ulLastCount = 0;\r
\r
/* We use the timer 1 counter value to measure the clock cycles between\r
the timer 0 interrupts. */\r
ulCurrentCount = timerTIMER_1_COUNT_VALUE;\r
\r
+ TimerIntClear( TIMER0_BASE, TIMER_TIMA_TIMEOUT );\r
+ \r
if( ulCurrentCount < ulLastCount )\r
{ \r
/* How many times has timer 1 counted since the last interrupt? */\r
}\r
\r
ulLastCount = ulCurrentCount;\r
-\r
- TimerIntClear( TIMER0_BASE, TIMER_TIMA_TIMEOUT );\r
}\r
\r
\r