Modify changes to test TCP socket.
Fork of lwip-eth by
Revision 8:e212d809fa8c, committed 2013-12-13
- Comitter:
- rebonatto
- Date:
- Fri Dec 13 11:36:17 2013 +0000
- Parent:
- 7:5754e05385b8
- Commit message:
- modify
Changed in this revision
arch/lpc17_emac.c | Show annotated file Show diff for this revision Revisions of this file |
diff -r 5754e05385b8 -r e212d809fa8c arch/lpc17_emac.c --- a/arch/lpc17_emac.c Mon Aug 19 18:39:00 2013 +0300 +++ b/arch/lpc17_emac.c Fri Dec 13 11:36:17 2013 +0000 @@ -694,7 +694,7 @@ LWIP_ASSERT("lpc_low_level_output: Not a DMA safe pbuf", (notdmasafe == 0)); #endif - + /* Wait until enough descriptors are available for the transfer. */ /* THIS WILL BLOCK UNTIL THERE ARE ENOUGH DESCRIPTORS AVAILABLE */ while (dn > lpc_tx_ready(netif)) @@ -734,7 +734,7 @@ lpc_enetif->ptxd[idx].control = (q->len - 1) | EMAC_TCTRL_INT; lpc_enetif->txb[idx] = NULL; } - + //printf("LLO %d \n", q->len); LWIP_DEBUGF(UDP_LPC_EMAC | LWIP_DBG_TRACE, ("lpc_low_level_output: pbuf packet(%p) sent, chain#=%d," " size = %d (index=%d)\n", q->payload, dn, q->len, idx)); @@ -916,8 +916,8 @@ /* Initial MAC initialization */ LPC_EMAC->MAC1 = EMAC_MAC1_PASS_ALL; - LPC_EMAC->MAC2 = EMAC_MAC2_CRC_EN | EMAC_MAC2_PAD_EN | - EMAC_MAC2_VLAN_PAD_EN; + LPC_EMAC->MAC2 = EMAC_MAC2_CRC_EN | EMAC_MAC2_PAD_EN;// | + //EMAC_MAC2_VLAN_PAD_EN; LPC_EMAC->MAXF = EMAC_ETH_MAX_FLEN; /* Set RMII management clock rate to lowest speed */