Replace the Webserver demo's uIP with the latest code ripped from the Contiki project...
[pub/USBasp.git] / Projects / Webserver / Lib / uip / conf / apps-conf.h
1 #ifndef __APPS_CONF_H__
2 #define __APPS_CONF_H__
3
4 #include <ff.h>
5
6 typedef struct
7 {
8 uint8_t CurrentState;
9 uint8_t NextState;
10
11 char FileName[30];
12 FIL FileHandle;
13 bool FileOpen;
14 uint32_t ACKedFilePos;
15 uint16_t SentChunkSize;
16 } uip_tcp_appstate_t;
17
18 typedef struct
19 {
20 uint8_t CurrentState;
21 struct uip_udp_conn* Connection;
22
23 struct
24 {
25 uint8_t AllocatedIP[4];
26 uint8_t Netmask[4];
27 uint8_t GatewayIP[4];
28 uint8_t ServerIP[4];
29 } DHCPOffer_Data;
30 } uip_udp_appstate_t;
31
32 #define UIP_APPCALL WebserverApp_Callback
33 #define UIP_UDP_APPCALL DHCPApp_Callback
34 void UIP_APPCALL(void);
35 void UIP_UDP_APPCALL(void);
36
37 #endif /*__APPS_CONF_H__*/