/* Priority 5, or 160 as only the top three bits are implemented. */\r
#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( 5 << (8 - configPRIO_BITS) )\r
\r
-\r
+/* Priorities passed to NVIC_SetPriority() do not require shifting as the\r
+function does the shifting itself. */\r
+#define configEMAC_INTERRUPT_PRIORITY 5\r
\r
\r
\r
\r
/* Set the interrupt priority to the max permissible to cause some\r
interrupt nesting. */\r
- NVIC_SetPriority( ENET_IRQn, configMAX_SYSCALL_INTERRUPT_PRIORITY );\r
+ NVIC_SetPriority( ENET_IRQn, configEMAC_INTERRUPT_PRIORITY );\r
\r
/* Enable the interrupt. */\r
NVIC_EnableIRQ( ENET_IRQn );\r
/* Priority 5, or 160 as only the top three bits are implemented. */\r
#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( 5 << (8 - configPRIO_BITS) )\r
\r
+/* Priorities passed to NVIC_SetPriority() do not require shifting as the\r
+function does the shifting itself. */\r
+#define configEMAC_INTERRUPT_PRIORITY 5\r
\r
\r
\r
\r
/* Set the interrupt priority to the max permissible to cause some\r
interrupt nesting. */\r
- NVIC_SetPriority( ENET_IRQn, configMAX_SYSCALL_INTERRUPT_PRIORITY );\r
+ NVIC_SetPriority( ENET_IRQn, configEMAC_INTERRUPT_PRIORITY );\r
\r
/* Enable the interrupt. */\r
NVIC_EnableIRQ( ENET_IRQn );\r