Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/*******************************************************************************
* Variables
******************************************************************************/
extern void *enetIfHandle;


/* Internal irq number*/
typedef enum _enet_irq_number
Expand Down Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions libraries/net/eth/lwip-eth/arch/TARGET_K64F/k64f_emac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
/**
* @}
*/
Expand Down