From 05b21d7b2d315647e7ad4237bcd5e3e389f8fd51 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Tue, 7 Jun 2016 17:06:22 -0500 Subject: [PATCH] Fixed uninitialized port in lwip dragged in by KSDK2 --- lwip-eth/arch/TARGET_Freescale/hardware_init_MK64F12.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lwip-eth/arch/TARGET_Freescale/hardware_init_MK64F12.c b/lwip-eth/arch/TARGET_Freescale/hardware_init_MK64F12.c index a6a4c04126..a259e76fe2 100644 --- a/lwip-eth/arch/TARGET_Freescale/hardware_init_MK64F12.c +++ b/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 */