VZTECH / lwip-eth

Dependents:   EthernetInterface EthernetInterface_vz

Fork of lwip-eth by mbed official

Files at this revision

API Documentation at this revision

Comitter:
klauss
Date:
Mon Sep 15 20:53:13 2014 +0000
Parent:
17:af9161326c59
Child:
19:3dfbfd94d4a1
Commit message:
versao de abertura e fechamento de sockets, travando em momentos random, provavelmente quando se usa um null pointer.

Changed in this revision

arch/TARGET_NXP/lpc17xx_emac.h Show annotated file Show diff for this revision Revisions of this file
arch/TARGET_NXP/lpc_emac_config.h Show annotated file Show diff for this revision Revisions of this file
--- a/arch/TARGET_NXP/lpc17xx_emac.h	Fri Sep 12 16:45:07 2014 +0000
+++ b/arch/TARGET_NXP/lpc17xx_emac.h	Mon Sep 15 20:53:13 2014 +0000
@@ -74,7 +74,7 @@
 /* EMAC Memory Buffer configuration for 16K Ethernet RAM */
 #define EMAC_NUM_RX_FRAG         4           /**< Num.of RX Fragments 4*1536= 6.0kB */
 #define EMAC_NUM_TX_FRAG         3           /**< Num.of TX Fragments 3*1536= 4.6kB */
-#define EMAC_ETH_MAX_FLEN        1536        /**< Max. Ethernet Frame Size          */
+#define EMAC_ETH_MAX_FLEN        400//pzn1536        /**< Max. Ethernet Frame Size          */
 #define EMAC_TX_FRAME_TOUT       0x00100000  /**< Frame Transmit timeout count      */
 
 /* --------------------- BIT DEFINITIONS -------------------------------------- */
--- a/arch/TARGET_NXP/lpc_emac_config.h	Fri Sep 12 16:45:07 2014 +0000
+++ b/arch/TARGET_NXP/lpc_emac_config.h	Mon Sep 15 20:53:13 2014 +0000
@@ -81,7 +81,7 @@
 /** \brief  Defines the number of descriptors used for RX. This
  *          must be a minimum value of 2.
  */
-#define LPC_NUM_BUFF_RXDESCS 3
+#define LPC_NUM_BUFF_RXDESCS 9//pzn3
 
 /** \brief  Defines the number of descriptors used for TX. Must
  *          be a minimum value of 2.