forked

Fork of lwip-eth by mbed official

Revision:
15:82aaaa2f4d5c
Parent:
12:8722e4b223d8
Child:
16:eb4a98a54ad0
diff -r 578727b0a909 -r 82aaaa2f4d5c arch/TARGET_K64F/k64f_emac.c
--- a/arch/TARGET_K64F/k64f_emac.c	Mon Jun 09 15:00:19 2014 +0100
+++ b/arch/TARGET_K64F/k64f_emac.c	Wed Jun 11 09:30:25 2014 +0100
@@ -27,6 +27,7 @@
 
 extern IRQn_Type enet_irq_ids[HW_ENET_INSTANCE_COUNT][FSL_FEATURE_ENET_INTERRUPT_COUNT];
 extern uint8_t enetIntMap[kEnetIntNum];
+extern void *enetIfHandle;
 
 /********************************************************************************
  * Internal data
@@ -855,6 +856,22 @@
   interrupt_disable(enet_irq_ids[BOARD_DEBUG_ENET_INSTANCE][enetIntMap[kEnetTxfInt]]);  
 }
 
+void ENET_Transmit_IRQHandler(void)
+{
+     enet_mac_tx_isr(enetIfHandle);
+}
+
+void ENET_Receive_IRQHandler(void)
+{
+     enet_mac_rx_isr(enetIfHandle);
+}
+
+#if FSL_FEATURE_ENET_SUPPORT_PTP
+void ENET_1588_Timer_IRQHandler(void)
+{
+     enet_mac_ts_isr(enetIfHandle);
+}
+#endif
 /**
  * @}
  */