#define INCLUDE_vTaskDelay 1\r
#define INCLUDE_uxTaskGetStackHighWaterMark 1\r
\r
-#define configKERNEL_INTERRUPT_PRIORITY 255\r
-#define configMAX_SYSCALL_INTERRUPT_PRIORITY 191 /* equivalent to 0xa0, or priority 5. */\r
+\r
+\r
+#define configKERNEL_INTERRUPT_PRIORITY ( ( unsigned portCHAR ) 7 << ( unsigned portCHAR ) 5 ) /* Priority 7, or 255 as only the top three bits are implemented. This is the lowest priority. */\r
+#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( ( unsigned portCHAR ) 5 << ( unsigned portCHAR ) 5 ) /* Priority 5, or 160 as only the top three bits are implemented. */\r
\r
\r
#endif /* FREERTOS_CONFIG_H */\r
\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