mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-02 04:13:54 -04:00
UpdUpdate IAR projects to use Embedded Workbench V5.11.
This commit is contained in:
parent
dfb8e7003b
commit
474cb76864
104 changed files with 10988 additions and 22710 deletions
|
@ -68,7 +68,7 @@ zero. */
|
|||
void Timer0IntHandler( void );
|
||||
|
||||
/* Stores the value of the maximum recorded jitter between interrupts. */
|
||||
unsigned portLONG ulMaxJitter = 0;
|
||||
volatile unsigned portLONG ulMaxJitter = 0;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
@ -89,6 +89,9 @@ unsigned long ulFrequency;
|
|||
/* Just used to measure time. */
|
||||
TimerLoadSet(TIMER1_BASE, TIMER_A, timerMAX_32BIT_VALUE );
|
||||
|
||||
/* Ensure interrupts do not start until the scheduler is running. */
|
||||
portDISABLE_INTERRUPTS();
|
||||
|
||||
/* The rate at which the timer will interrupt. */
|
||||
ulFrequency = configCPU_CLOCK_HZ / timerINTERRUPT_FREQUENCY;
|
||||
TimerLoadSet( TIMER0_BASE, TIMER_A, ulFrequency );
|
||||
|
@ -103,7 +106,8 @@ unsigned long ulFrequency;
|
|||
|
||||
void Timer0IntHandler( void )
|
||||
{
|
||||
unsigned portLONG ulDifference, ulCurrentCount;
|
||||
unsigned portLONG ulDifference;
|
||||
volatile unsigned portLONG ulCurrentCount;
|
||||
static portLONG ulMaxDifference = 0, ulLastCount = 0;
|
||||
|
||||
/* We use the timer 1 counter value to measure the clock cycles between
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue