Add FatFS library to the Webserver project, extend the HTTP server so that it now...
[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 FIL FileToSend;
10 bool FileOpen;
11 } uip_tcp_appstate_t;
12
13 typedef struct
14 {
15 uint8_t CurrentState;
16 struct uip_udp_conn* Connection;
17
18 struct
19 {
20 uint8_t AllocatedIP[4];
21 uint8_t Netmask[4];
22 uint8_t GatewayIP[4];
23 uint8_t ServerIP[4];
24 } DHCPOffer_Data;
25 } uip_udp_appstate_t;
26
27 #define UIP_APPCALL WebserverApp_Callback
28 #define UIP_UDP_APPCALL DHCPApp_Callback
29 void UIP_APPCALL(void);
30 void UIP_UDP_APPCALL(void);
31
32 #endif /*__APPS_CONF_H__*/