Ethernet Interface Networking Library
Dependencies: LwIPNetworking lwip-eth
Fork of EthernetNetworkLib by
lwipopts.h
00001 /* lwipopts.h */ 00002 /* Copyright (C) 2012 mbed.org, MIT License 00003 * 00004 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software 00005 * and associated documentation files (the "Software"), to deal in the Software without restriction, 00006 * including without limitation the rights to use, copy, modify, merge, publish, distribute, 00007 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is 00008 * furnished to do so, subject to the following conditions: 00009 * 00010 * The above copyright notice and this permission notice shall be included in all copies or 00011 * substantial portions of the Software. 00012 * 00013 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING 00014 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00015 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 00016 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00017 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00018 */ 00019 00020 #ifndef LWIPOPTS_H_ 00021 #define LWIPOPTS_H_ 00022 00023 #include "lwipopts_common.h" //Get common options 00024 00025 #define MEM_SIZE 16362 //Needs a huge buffer pool 00026 00027 #define LWIP_ARP 1 //Enable ARP 00028 00029 /* This define is custom for the LPC EMAC driver. Enabled it to 00030 get debug messages for the driver. */ 00031 #define UDP_LPC_EMAC LWIP_DBG_OFF 00032 00033 /* No padding needed */ 00034 #define ETH_PAD_SIZE 0 00035 00036 /* MSS should match the hardware packet size */ 00037 #define TCP_MSS 1460 00038 #define TCP_SND_BUF (2 * TCP_MSS) 00039 #define TCP_WND (2 * TCP_MSS) 00040 #define TCP_SND_QUEUELEN (2 * TCP_SND_BUF/TCP_MSS) 00041 00042 #define IP_SOF_BROADCAST 1 00043 #define IP_SOF_BROADCAST_RECV 1 00044 00045 /* The ethernet FCS is performed in hardware. The IP, TCP, and UDP 00046 CRCs still need to be done in hardware. */ 00047 #define CHECKSUM_GEN_IP 1 00048 #define CHECKSUM_GEN_UDP 1 00049 #define CHECKSUM_GEN_TCP 1 00050 #define CHECKSUM_CHECK_IP 1 00051 #define CHECKSUM_CHECK_UDP 1 00052 #define CHECKSUM_CHECK_TCP 1 00053 #define LWIP_CHECKSUM_ON_COPY 1 00054 00055 /* DHCP is ok, UDP is required with DHCP */ 00056 #define LWIP_DHCP 1 00057 #define LWIP_UDP 1 00058 00059 /* Hostname can be used */ 00060 #define LWIP_NETIF_HOSTNAME 1 00061 00062 #define LWIP_BROADCAST_PING 1 00063 00064 #define LWIP_NETIF_STATUS_CALLBACK 1 //We want to be notified whenever the netif state changes 00065 00066 00067 #endif /* LWIPOPTS_H_ */
Generated on Sat Jul 16 2022 06:56:09 by 1.7.2