diff options
author | David Crocker <dcrocker@eschertech.com> | 2019-12-02 02:11:44 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2019-12-02 02:11:44 +0300 |
commit | 600aabe66c5087af4642946d3ee0191167b2830c (patch) | |
tree | a6b9b1a5dc3b41d805e4a3a176e8a84be0345de4 /src/Networking/LwipEthernet/Lwip | |
parent | fda7f573aaf3d70d4c3dced459bdc75909a54de4 (diff) |
Ethernet and other fixes
Fixed data corruption during file uploads. We now use a separate task to read data from the GMAC.
Bug fix for M574 S0
Bug fix for software reset data report wheh no module was spinning
Diffstat (limited to 'src/Networking/LwipEthernet/Lwip')
-rw-r--r-- | src/Networking/LwipEthernet/Lwip/lwipopts.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/Networking/LwipEthernet/Lwip/lwipopts.h b/src/Networking/LwipEthernet/Lwip/lwipopts.h index 367f37c8..c2c683c6 100644 --- a/src/Networking/LwipEthernet/Lwip/lwipopts.h +++ b/src/Networking/LwipEthernet/Lwip/lwipopts.h @@ -56,11 +56,8 @@ * use lwIP facilities. * Uses Raw API only. */ -#ifndef LWIP_GMAC_TASK -# error LWIP_GMAC_TASK must be defined in compiler settings -#endif -#define NO_SYS (!LWIP_GMAC_TASK) +#define NO_SYS 1 /** * LWIP_NETIF_STATUS_CALLBACK==1: Support a callback function whenever an interface @@ -136,7 +133,7 @@ * MEMP_NUM_REASSDATA: the number of IP packets simultaneously queued for * reassembly (whole packets, not fragments!) */ -#define MEMP_NUM_REASSDATA 2 +#define MEMP_NUM_REASSDATA 5 /** * MEMP_NUM_FRAG_PBUF: the number of IP fragments simultaneously sent @@ -167,9 +164,9 @@ #define MEMP_NUM_NETCONN 0 /** - * PBUF_POOL_SIZE: the number of buffers in the pbuf pool. + * PBUF_POOL_SIZE: the number of buffers in the pbuf pool. Needs to be enough for IP packet reassembly. */ -#define PBUF_POOL_SIZE (GMAC_RX_BUFFERS + 4) +#define PBUF_POOL_SIZE (GMAC_RX_BUFFERS + GMAC_TX_BUFFERS + 12) /** * PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. |