Skip to content

Commit 8af190f

Browse files
authored
Merge pull request #4112 from adamgreen/fixLpc17xxEthernetIsrAlwaysLinkedIn
Only link in LPC17xx ethernet ISR as needed
2 parents 7a35a4d + be0bab3 commit 8af190f

File tree

1 file changed

+2
-1
lines changed
  • features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP

1 file changed

+2
-1
lines changed

features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc17_emac.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ static err_t lpc_low_level_output(struct netif *netif, struct pbuf *p)
670670
* This function handles the transmit, receive, and error interrupt of
671671
* the LPC177x_8x. This is meant to be used when NO_SYS=0.
672672
*/
673-
void ENET_IRQHandler(void)
673+
void LPC17xxEthernetHandler(void)
674674
{
675675
#if NO_SYS == 1
676676
/* Interrupts are not used without an RTOS */
@@ -1046,6 +1046,7 @@ err_t eth_arch_enetif_init(struct netif *netif)
10461046
}
10471047

10481048
void eth_arch_enable_interrupts(void) {
1049+
NVIC_SetVector(ENET_IRQn, (uint32_t)LPC17xxEthernetHandler);
10491050
NVIC_SetPriority(ENET_IRQn, ((0x01 << 3) | 0x01));
10501051
NVIC_EnableIRQ(ENET_IRQn);
10511052
}

0 commit comments

Comments
 (0)