]> git.sur5r.net Git - freertos/commitdiff
Change the timer interrupt to use the kernel interrupt entry/exit macros.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 7 May 2008 17:56:45 +0000 (17:56 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 7 May 2008 17:56:45 +0000 (17:56 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@340 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/PIC32MX_MPLAB/timertest.c

index 9404785717691d6fc2928456207a37501aaaa04f..c2b3b263f6a4f21123279716fdda3d9b4dcca3b8 100644 (file)
@@ -62,6 +62,8 @@
 /* The maximum value the 16bit timer can contain. */\r
 #define timerMAX_COUNT                         0xffff\r
 \r
+/* The timer 1 interrupt handler. */\r
+void __attribute__( (interrupt(ipl0), vector(_TIMER_2_VECTOR))) vT2InterruptWrapper( void );\r
 \r
 /*-----------------------------------------------------------*/\r
 \r
@@ -83,7 +85,7 @@ void vSetupTimerTest( unsigned portSHORT usFrequencyHz )
 \r
        /* Setup timer 2 interrupt priority to be above the kernel priority so \r
        the timer jitter is not effected by the kernel activity. */\r
-       ConfigIntTimer2( T2_INT_ON | ( configKERNEL_INTERRUPT_PRIORITY + 1 ) );\r
+       ConfigIntTimer2( T2_INT_ON | ( configMAX_SYSCALL_INTERRUPT_PRIORITY + 1 ) );\r
 \r
        /* Clear the interrupt as a starting condition. */\r
        IFS0bits.T2IF = 0;\r
@@ -96,7 +98,6 @@ void vSetupTimerTest( unsigned portSHORT usFrequencyHz )
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-void __attribute__( (interrupt(ipl0), vector(_TIMER_2_VECTOR))) vT2InterruptHandler( void );\r
 void vT2InterruptHandler( void )\r
 {\r
 static unsigned portLONG ulLastCount = 0, ulSettleCount = 0;\r