mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 17:48:33 -04:00
Add in the configMAX_SYSCALL_INTERRUPT_PRIORITY test tasks.
This commit is contained in:
parent
512c86194f
commit
ae6d081ebe
9 changed files with 267 additions and 81 deletions
|
@ -85,7 +85,7 @@ volatile unsigned portLONG ulMaxJitter = 0;
|
|||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
void vSetupTimer( void )
|
||||
void vSetupHighFrequencyTimer( void )
|
||||
{
|
||||
unsigned long ulFrequency;
|
||||
|
||||
|
@ -121,12 +121,14 @@ void Timer0IntHandler( void )
|
|||
{
|
||||
unsigned portLONG ulDifference;
|
||||
volatile unsigned portLONG ulCurrentCount;
|
||||
static portLONG ulMaxDifference = 0, ulLastCount = 0;
|
||||
static unsigned portLONG ulMaxDifference = 0, ulLastCount = 0;
|
||||
|
||||
/* We use the timer 1 counter value to measure the clock cycles between
|
||||
the timer 0 interrupts. */
|
||||
ulCurrentCount = timerTIMER_1_COUNT_VALUE;
|
||||
|
||||
TimerIntClear( TIMER0_BASE, TIMER_TIMA_TIMEOUT );
|
||||
|
||||
if( ulCurrentCount < ulLastCount )
|
||||
{
|
||||
/* How many times has timer 1 counted since the last interrupt? */
|
||||
|
@ -141,8 +143,6 @@ static portLONG ulMaxDifference = 0, ulLastCount = 0;
|
|||
}
|
||||
|
||||
ulLastCount = ulCurrentCount;
|
||||
|
||||
TimerIntClear( TIMER0_BASE, TIMER_TIMA_TIMEOUT );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue