[K64F] enet - IRQ handlers are in the emac (eth) layer

pull/350/head
0xc0170 2014-06-10 16:09:08 +01:00
parent 978d8bd667
commit 372009f461
2 changed files with 19 additions and 19 deletions

View File

@ -33,7 +33,7 @@
/*******************************************************************************
* Variables
******************************************************************************/
extern void *enetIfHandle;
/* Internal irq number*/
typedef enum _enet_irq_number
@ -81,24 +81,7 @@ uint8_t enetIntMap[kEnetIntNum] =
/*******************************************************************************
* Code
******************************************************************************/
#if defined (K64F12_SERIES) || defined (K70F12_SERIES)
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
#endif
/* The code was moved to k64f mac file (eth) */
/*******************************************************************************
* EOF

View File

@ -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 @@ void eth_arch_disable_interrupts(void) {
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
/**
* @}
*/