1 |
hedin |
15 |
/*********************************************************************
|
2 |
|
|
*
|
3 |
|
|
* Microchip TCP/IP Stack Include File
|
4 |
|
|
*
|
5 |
|
|
*********************************************************************
|
6 |
|
|
* FileName: TCPIP.h
|
7 |
|
|
* Dependencies:
|
8 |
|
|
* Processor: PIC18, PIC24F, PIC24H, dsPIC30F, dsPIC33F
|
9 |
|
|
* Complier: Microchip C18 v3.02 or higher
|
10 |
|
|
* Microchip C30 v2.01 or higher
|
11 |
|
|
* Company: Microchip Technology, Inc.
|
12 |
|
|
*
|
13 |
|
|
* Software License Agreement
|
14 |
|
|
*
|
15 |
|
|
* Copyright © 2002-2007 Microchip Technology Inc. All rights
|
16 |
|
|
* reserved.
|
17 |
|
|
*
|
18 |
|
|
* Microchip licenses to you the right to use, modify, copy, and
|
19 |
|
|
* distribute:
|
20 |
|
|
* (i) the Software when embedded on a Microchip microcontroller or
|
21 |
|
|
* digital signal controller product (“Device”) which is
|
22 |
|
|
* integrated into Licensee’s product; or
|
23 |
|
|
* (ii) ONLY the Software driver source files ENC28J60.c and
|
24 |
|
|
* ENC28J60.h ported to a non-Microchip device used in
|
25 |
|
|
* conjunction with a Microchip ethernet controller for the
|
26 |
|
|
* sole purpose of interfacing with the ethernet controller.
|
27 |
|
|
*
|
28 |
|
|
* You should refer to the license agreement accompanying this
|
29 |
|
|
* Software for additional information regarding your rights and
|
30 |
|
|
* obligations.
|
31 |
|
|
*
|
32 |
|
|
* THE SOFTWARE AND DOCUMENTATION ARE PROVIDED “AS IS” WITHOUT
|
33 |
|
|
* WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT
|
34 |
|
|
* LIMITATION, ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A
|
35 |
|
|
* PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
36 |
|
|
* MICROCHIP BE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR
|
37 |
|
|
* CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF
|
38 |
|
|
* PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES, ANY CLAIMS
|
39 |
|
|
* BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE
|
40 |
|
|
* THEREOF), ANY CLAIMS FOR INDEMNITY OR CONTRIBUTION, OR OTHER
|
41 |
|
|
* SIMILAR COSTS, WHETHER ASSERTED ON THE BASIS OF CONTRACT, TORT
|
42 |
|
|
* (INCLUDING NEGLIGENCE), BREACH OF WARRANTY, OR OTHERWISE.
|
43 |
|
|
*
|
44 |
|
|
*
|
45 |
|
|
* Author Date Comment
|
46 |
|
|
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
47 |
|
|
* Howard Schlunder 12/20/06 Original
|
48 |
|
|
********************************************************************/
|
49 |
|
|
#ifndef __TCPIP_H
|
50 |
|
|
#define __TCPIP_H
|
51 |
|
|
|
52 |
|
|
#include <string.h>
|
53 |
|
|
#include <stdlib.h>
|
54 |
|
|
#include "GenericTypeDefs.h"
|
55 |
|
|
#include "Compiler.h"
|
56 |
|
|
#include "HardwareProfile.h"
|
57 |
|
|
#include "TCPIPConfig.h"
|
58 |
|
|
#include "TCPIP Stack/StackTsk.h"
|
59 |
|
|
#include "TCPIP Stack/Helpers.h"
|
60 |
|
|
#include "TCPIP Stack/Delay.h"
|
61 |
|
|
#include "TCPIP Stack/Tick.h"
|
62 |
|
|
#include "TCPIP Stack/MAC.h"
|
63 |
|
|
#include "TCPIP Stack/IP.h"
|
64 |
|
|
#include "TCPIP Stack/ARP.h"
|
65 |
|
|
|
66 |
|
|
#if defined(STACK_USE_UDP)
|
67 |
|
|
#include "TCPIP Stack/UDP.h"
|
68 |
|
|
#endif
|
69 |
|
|
|
70 |
|
|
#if defined(STACK_USE_TCP)
|
71 |
|
|
#include "TCPIP Stack/TCP.h"
|
72 |
|
|
#endif
|
73 |
|
|
|
74 |
|
|
#if defined(USE_LCD)
|
75 |
|
|
#include "TCPIP Stack/LCDBlocking.h"
|
76 |
|
|
#endif
|
77 |
|
|
|
78 |
|
|
#if defined(STACK_USE_UART)
|
79 |
|
|
#include "TCPIP Stack/UART.h"
|
80 |
|
|
#endif
|
81 |
|
|
|
82 |
|
|
#if defined(STACK_USE_UART)
|
83 |
|
|
#include "TCPIP Stack/UART.h"
|
84 |
|
|
#endif
|
85 |
|
|
|
86 |
|
|
#if defined(STACK_USE_DHCP_CLIENT) || defined(STACK_USE_DHCP_SERVER)
|
87 |
|
|
#include "TCPIP Stack/DHCP.h"
|
88 |
|
|
#endif
|
89 |
|
|
|
90 |
|
|
#if defined(STACK_USE_DNS)
|
91 |
|
|
#include "TCPIP Stack/DNS.h"
|
92 |
|
|
#endif
|
93 |
|
|
|
94 |
|
|
#if defined(STACK_USE_FTP_SERVER)
|
95 |
|
|
#include "TCPIP Stack/MPFS.h"
|
96 |
|
|
#include "TCPIP Stack/FTP.h"
|
97 |
|
|
#endif
|
98 |
|
|
|
99 |
|
|
#if defined(STACK_USE_HTTP_SERVER)
|
100 |
|
|
#include "TCPIP Stack/MPFS.h"
|
101 |
|
|
#include "TCPIP Stack/HTTP.h"
|
102 |
|
|
#endif
|
103 |
|
|
|
104 |
|
|
#if defined(STACK_USE_ICMP_SERVER) || defined(STACK_USE_ICMP_CLIENT)
|
105 |
|
|
#include "TCPIP Stack/ICMP.h"
|
106 |
|
|
#endif
|
107 |
|
|
|
108 |
|
|
#if defined(STACK_USE_ANNOUNCE)
|
109 |
|
|
#include "TCPIP Stack/Announce.h"
|
110 |
|
|
#endif
|
111 |
|
|
|
112 |
|
|
#if defined(MPFS_USE_EEPROM)
|
113 |
|
|
#include "TCPIP Stack/MPFS.h"
|
114 |
|
|
#include "TCPIP Stack/XEEPROM.h"
|
115 |
|
|
#endif
|
116 |
|
|
|
117 |
|
|
#if defined(STACK_USE_SNMP_SERVER)
|
118 |
|
|
#include "TCPIP Stack/SNMP.h"
|
119 |
|
|
#include "TCPIP Stack/mib.h"
|
120 |
|
|
#endif
|
121 |
|
|
|
122 |
|
|
#if defined(STACK_USE_NBNS)
|
123 |
|
|
#include "TCPIP Stack/NBNS.h"
|
124 |
|
|
#endif
|
125 |
|
|
|
126 |
|
|
#if defined(STACK_USE_DNS)
|
127 |
|
|
#include "TCPIP Stack/DNS.h"
|
128 |
|
|
#endif
|
129 |
|
|
|
130 |
|
|
#if defined(STACK_USE_GENERIC_TCP_CLIENT_EXAMPLE)
|
131 |
|
|
#include "TCPIP Stack/GenericTCPClient.h"
|
132 |
|
|
#endif
|
133 |
|
|
|
134 |
|
|
#if defined(STACK_USE_GENERIC_TCP_SERVER_EXAMPLE)
|
135 |
|
|
#include "TCPIP Stack/GenericTCPServer.h"
|
136 |
|
|
#endif
|
137 |
|
|
|
138 |
|
|
#if defined(STACK_USE_TELNET_SERVER)
|
139 |
|
|
#include "TCPIP Stack/Telnet.h"
|
140 |
|
|
#endif
|
141 |
|
|
|
142 |
|
|
#if defined(STACK_USE_SMTP_CLIENT)
|
143 |
|
|
#include "TCPIP Stack/SMTP.h"
|
144 |
|
|
#endif
|
145 |
|
|
|
146 |
|
|
#if defined(STACK_USE_TFTP_CLIENT)
|
147 |
|
|
#include "TCPIP Stack/TFTPc.h"
|
148 |
|
|
#endif
|
149 |
|
|
|
150 |
|
|
#if defined(STACK_USE_REBOOT_SERVER)
|
151 |
|
|
#include "TCPIP Stack/Reboot.h"
|
152 |
|
|
#endif
|
153 |
|
|
|
154 |
|
|
#if defined(STACK_USE_UDP_PERFORMANCE_TEST)
|
155 |
|
|
#include "TCPIP Stack/UDPPerformanceTest.h"
|
156 |
|
|
#endif
|
157 |
|
|
|
158 |
|
|
#if defined(STACK_USE_TCP_PERFORMANCE_TEST)
|
159 |
|
|
#include "TCPIP Stack/TCPPerformanceTest.h"
|
160 |
|
|
#endif
|
161 |
|
|
|
162 |
|
|
#endif
|