//***************************************************************************** // // uip-conf.h - uIP Project Specific Configuration File // // Copyright (c) 2013-2014 Texas Instruments Incorporated. All rights reserved. // Software License Agreement // // Texas Instruments (TI) is supplying this software for use solely and // exclusively on TI's microcontroller products. The software is owned by // TI and/or its suppliers, and is protected under applicable copyright // laws. You may not combine this software with "viral" open-source // software in order to form a larger program. // // THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS. // NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT // NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY // CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL // DAMAGES, FOR ANY REASON WHATSOEVER. // // This is part of revision 2.1.0.12573 of the DK-TM4C129X Firmware Package. // //***************************************************************************** #ifndef __UIP_CONF_H__ #define __UIP_CONF_H__ // // 8 bit datatype // This typedef defines the 8-bit type used throughout uIP. // typedef unsigned char u8_t; // // 16 bit datatype // This typedef defines the 16-bit type used throughout uIP. // typedef unsigned short u16_t; // // Statistics datatype // This typedef defines the dataype used for keeping statistics in // uIP. // typedef unsigned short uip_stats_t; // // Ping IP address assignment // Use first incoming "ping" packet to derive host IP address // #define UIP_CONF_PINGADDRCONF 0 // // UDP support on or off // #define UIP_CONF_UDP 1 // // UDP checksums on or off // (not currently supported ... should be 0) // #define UIP_CONF_UDP_CHECKSUMS 0 // // UDP Maximum Connections // #define UIP_CONF_UDP_CONNS 4 // // Maximum number of TCP connections. // #define UIP_CONF_MAX_CONNECTIONS 2 // // Maximum number of listening TCP ports. // #define UIP_CONF_MAX_LISTENPORTS 4 // // Size of advertised receiver's window // //#define UIP_CONF_RECEIVE_WINDOW 400 // // Size of ARP table // #define UIP_CONF_ARPTAB_SIZE 8 // // uIP buffer size. // #define UIP_CONF_BUFFER_SIZE 1600 // // uIP buffer is defined in the application. // #define UIP_CONF_EXTERNAL_BUFFER // // uIP statistics on or off // #define UIP_CONF_STATISTICS 1 // // Logging on or off // #define UIP_CONF_LOGGING 0 // // Broadcast Support // #define UIP_CONF_BROADCAST 0 // // Link-Level Header length // #define UIP_CONF_LLH_LEN 14 // // CPU byte order. // #define UIP_CONF_BYTE_ORDER LITTLE_ENDIAN // // Offload checksum calculation to the hardware. // // TODO: Once things are working, turn on hardware checksum calculation and // make sure the application source includes stubs for uip_ipchksum(), // uip_tcpchksum() and uip_udpchksum(). uip_icmp6chksum() is also needed if // IPv6 is in use. // #define UIP_ARCH_IPCHKSUM #define UIP_ARCH_CHKSUM 1 // // Here we include the header file for the application we are using in // this example // #include "httpd/httpd.h" // // Define the uIP Application State type, based on the httpd.h state variable. // typedef struct httpd_state uip_tcp_appstate_t; // // UIP_APPCALL: the name of the application function. This function // must return void and take no arguments (i.e., C type "void // appfunc(void)"). // #ifndef UIP_APPCALL #define UIP_APPCALL httpd_appcall #endif // // Here we include the header file for the DPCP client we are using in // this example // #include "dhcpc/dhcpc.h" #endif // __UIP_CONF_H_