summaryrefslogtreecommitdiff
path: root/boards/dk-tm4c129x/enet_uip/uip-conf.h
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2014-06-29 12:34:32 +0300
committerYuval Adam <yuv.adm@gmail.com>2014-06-29 12:34:32 +0300
commitc3e4c9a25c2910d2d66d52215b3406b13d5b23d5 (patch)
treeadded370d1e356901f8579f076e3263fb0464db7 /boards/dk-tm4c129x/enet_uip/uip-conf.h
parent990090a4cc9070837d31e66b58d40f0c3d038741 (diff)
Add more board models
Diffstat (limited to 'boards/dk-tm4c129x/enet_uip/uip-conf.h')
-rw-r--r--boards/dk-tm4c129x/enet_uip/uip-conf.h162
1 files changed, 162 insertions, 0 deletions
diff --git a/boards/dk-tm4c129x/enet_uip/uip-conf.h b/boards/dk-tm4c129x/enet_uip/uip-conf.h
new file mode 100644
index 0000000..5176f49
--- /dev/null
+++ b/boards/dk-tm4c129x/enet_uip/uip-conf.h
@@ -0,0 +1,162 @@
+//*****************************************************************************
+//
+// 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_