From f046234ce8588dab3a8d29bb26eb3984c4d47d16 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Thu, 9 Jun 2016 12:43:00 -0500 Subject: [PATCH] Fixed uninitialized port in lwip dragged in by KSDK2 --- .../eth/lwip-eth/arch/TARGET_Freescale/hardware_init_MK64F12.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/net/eth/lwip-eth/arch/TARGET_Freescale/hardware_init_MK64F12.c b/libraries/net/eth/lwip-eth/arch/TARGET_Freescale/hardware_init_MK64F12.c index a6a4c04126..a259e76fe2 100644 --- a/libraries/net/eth/lwip-eth/arch/TARGET_Freescale/hardware_init_MK64F12.c +++ b/libraries/net/eth/lwip-eth/arch/TARGET_Freescale/hardware_init_MK64F12.c @@ -41,6 +41,7 @@ void k64f_init_eth_hardware(void) MPU->CESR &= ~MPU_CESR_VLD_MASK; CLOCK_EnableClock(kCLOCK_PortC); + CLOCK_EnableClock(kCLOCK_PortB); /* Affects PORTC_PCR16 register */ PORT_SetPinMux(PORTC, 16u, kPORT_MuxAlt4); /* Affects PORTC_PCR17 register */