#define THIS_IS_STACK_APPLICATION// Include all headers for any enabled TCPIP Stack functions#include "TCPIP Stack/TCPIP.h"// Include functions specific to this stack application#ifdef USE_USB_INTERFACE#include "USB/usb.h"#include "USB/usb_host_msd.h"#include "USB/usb_host_msd_scsi.h"#endif#include "MDD File System/FSIO.h"#ifdef USE_USB_INTERFACEtypedef struct
{union{BYTE value;struct{BYTE mediaPresent : 1;
BYTE cannotInitialize : 1;
BYTE overcurrentStateUSB : 1;
};
};
} MEDIA_STATUS;
MEDIA_STATUS mediaStatus;volatile BOOL deviceAttached;
#endif#ifdef STACK_USE_MDDvolatile BOOL MemInterfaceAttached=FALSE;
#endif// Declare AppConfig structure and some other supporting stack variablesAPP_CONFIG AppConfig;// Private helper functions.// These may or may not be present in all applications.//For displaying the current IP address on the LCD.void DisplayIPValue(IP_ADDR IPVal);
static void InitAppConfig(void);
static void InitializeBoard(void);
static void ProcessIO(void);
#ifdef USE_USB_INTERFACEstatic void MonitorMedia( void );
#endif