]> git.sur5r.net Git - freertos/blobdiff - Demo/CORTEX_LM3Sxxxx_Eclipse/RTOSDemo/IntQueueTimer.c
Change to use interrupt priority definitions that use shifted values from 0 to 7...
[freertos] / Demo / CORTEX_LM3Sxxxx_Eclipse / RTOSDemo / IntQueueTimer.c
index 92392a6b59f5dd918d643c8804836858346321c7..bd6e6e050132e3c2e71abfbcb053e5bb8e7f9378 100644 (file)
@@ -77,7 +77,7 @@ unsigned long ulFrequency;
        \r
        /* Set the timer interrupts to be above the kernel.  The interrupts are\r
         assigned different priorities so they nest with each other. */\r
-       IntPrioritySet( INT_TIMER2A, configMAX_SYSCALL_INTERRUPT_PRIORITY - 1 );\r
+       IntPrioritySet( INT_TIMER2A, configMAX_SYSCALL_INTERRUPT_PRIORITY + ( 1 << 5 ) ); /* Shift left 5 as only the top 3 bits are implemented. */\r
        IntPrioritySet( INT_TIMER3A, configMAX_SYSCALL_INTERRUPT_PRIORITY );\r
 \r
        /* Ensure interrupts do not start until the scheduler is running. */\r