From b53ed7c5783a5bdb53dc731b55f23b90a09bd97d Mon Sep 17 00:00:00 2001 From: richardbarry Date: Wed, 7 May 2008 17:56:45 +0000 Subject: [PATCH] Change the timer interrupt to use the kernel interrupt entry/exit macros. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@340 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Demo/PIC32MX_MPLAB/timertest.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Demo/PIC32MX_MPLAB/timertest.c b/Demo/PIC32MX_MPLAB/timertest.c index 940478571..c2b3b263f 100644 --- a/Demo/PIC32MX_MPLAB/timertest.c +++ b/Demo/PIC32MX_MPLAB/timertest.c @@ -62,6 +62,8 @@ /* The maximum value the 16bit timer can contain. */ #define timerMAX_COUNT 0xffff +/* The timer 1 interrupt handler. */ +void __attribute__( (interrupt(ipl0), vector(_TIMER_2_VECTOR))) vT2InterruptWrapper( void ); /*-----------------------------------------------------------*/ @@ -83,7 +85,7 @@ void vSetupTimerTest( unsigned portSHORT usFrequencyHz ) /* Setup timer 2 interrupt priority to be above the kernel priority so the timer jitter is not effected by the kernel activity. */ - ConfigIntTimer2( T2_INT_ON | ( configKERNEL_INTERRUPT_PRIORITY + 1 ) ); + ConfigIntTimer2( T2_INT_ON | ( configMAX_SYSCALL_INTERRUPT_PRIORITY + 1 ) ); /* Clear the interrupt as a starting condition. */ IFS0bits.T2IF = 0; @@ -96,7 +98,6 @@ void vSetupTimerTest( unsigned portSHORT usFrequencyHz ) } /*-----------------------------------------------------------*/ -void __attribute__( (interrupt(ipl0), vector(_TIMER_2_VECTOR))) vT2InterruptHandler( void ); void vT2InterruptHandler( void ) { static unsigned portLONG ulLastCount = 0, ulSettleCount = 0; -- 2.39.5