}\r
/*-----------------------------------------------------------*/\r
\r
-#if 0\r
-void ENET_IRQHandler( void )\r
-{\r
-uint32_t ulInterruptCause;\r
-\r
- while( ( ulInterruptCause = LPC_EMAC->IntStatus ) != 0 )\r
- {\r
- /* Clear the interrupt. */\r
- LPC_EMAC->IntClear = ulInterruptCause;\r
-\r
- /* Clear fatal error conditions. NOTE: The driver does not clear all\r
- errors, only those actually experienced. For future reference, range\r
- errors are not actually errors so can be ignored. */\r
- if( ( ulInterruptCause & EMAC_INT_TX_UNDERRUN ) != 0U )\r
- {\r
- LPC_EMAC->Command |= EMAC_CR_TX_RES;\r
- }\r
-\r
- /* Unblock the deferred interrupt handler task if the event was an\r
- Rx. */\r
- if( ( ulInterruptCause & EMAC_INT_RX_DONE ) != 0UL )\r
- {\r
- xSemaphoreGiveFromISR( xEMACRxEventSemaphore, NULL );\r
- }\r
- }\r
-\r
- /* Shortcut calling portEND_SWITCHING_ISR(). */\r
- vPortYieldFromISR();\r
-}\r
-/*-----------------------------------------------------------*/\r
-#endif\r
\r