There are several base files that must be included in every project using Microchip’s TCP/IP stack. They are:
- A main file- this is the file with your application code in it..
- ARP.c and ARP.h- These files are used by the stack to discover the MAC address associated with a given IP address.
- Delay.c and Delay.h – These files are used to provide delays for some stack functions. Note that it would be best to not use these delays in your own code, as they do create blocking conditions.
- Physical layer files – These files are used to enable a specified physical layer. More information on which files to include can be found in the Hardware Configuration section.
- Helpers.c and Helpers.h – These files contain helper functions used for miscellaneous stack tasks.
- IP.c and IP.h – These files provide internet layer functionality for the stack.
- StackTsk.c and StackTsk.h – These files contain the code to initialize the stack and perform the callbacks that keep the stack going.
- Tick.c and Tick.h – These files implement a tick timer that is used to implement some timing functionality within the stack.
- HardwareProfile.h – This configuration file is used to set up hardware options.
- TCPIPConfig.h – This configuration file is used to set up firmware options.
- MAC.h – This header file provides macros and structures relating to the hardware MAC layer.
- TCPIP.h – This is the primary include file for the stack. Your main file should include TCPIP.h.
You may choose to include additional files to support additional protocols and features. The list of protocols and their required files can be found in the Protocol Macros and Files topic in the Protocol Configuration topic.