LWIP-ETH
Fork of lwip-eth by
Diff: arch/TARGET_Freescale/k64f_emac.c
- Revision:
- 34:38a074e8baaf
- Parent:
- 31:da93f0f73711
--- a/arch/TARGET_Freescale/k64f_emac.c Tue May 03 00:16:23 2016 +0100 +++ b/arch/TARGET_Freescale/k64f_emac.c Wed Jan 04 09:09:48 2017 +0000 @@ -83,10 +83,10 @@ /* Increases the buffer descriptor to the next one. */ if (g_handle.rxBdCurrent->control & ENET_BUFFDESCRIPTOR_RX_WRAP_MASK) { g_handle.rxBdCurrent = g_handle.rxBdBase; - g_handle.rxBdDirty = g_handle.rxBdBase; + // g_handle.rxBdDirty = g_handle.rxBdBase; } else { g_handle.rxBdCurrent++; - g_handle.rxBdDirty++; + // g_handle.rxBdDirty++; } /* Actives the receive buffer descriptor. */ @@ -221,8 +221,8 @@ /* Change the MII speed and duplex for actual link status. */ config.miiSpeed = (enet_mii_speed_t)phy_speed; config.miiDuplex = (enet_mii_duplex_t)phy_duplex; - config.interrupt = kENET_RxFrameInterrupt | kENET_TxFrameInterrupt; } + config.interrupt = kENET_RxFrameInterrupt | kENET_TxFrameInterrupt; config.rxMaxFrameLen = ENET_ETH_MAX_FLEN; config.macSpecialConfig = kENET_ControlFlowControlEnable; config.txAccelerConfig = kENET_TxAccelIsShift16Enabled;