aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/Incomplete/Webserver/Lib/uip/conf
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-01-21 13:45:44 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-01-21 13:45:44 +0000
commit03ee87b35abdb8b92e8b55ec040fa943f9a6786c (patch)
treef6afd9650084eae3f0c92f47c6f205694168ad32 /Projects/Incomplete/Webserver/Lib/uip/conf
parent41ad6bd6d7e886412f6c12d98f040e51c3ee4fdf (diff)
downloadlufa-03ee87b35abdb8b92e8b55ec040fa943f9a6786c.tar.gz
lufa-03ee87b35abdb8b92e8b55ec040fa943f9a6786c.tar.bz2
lufa-03ee87b35abdb8b92e8b55ec040fa943f9a6786c.zip
Fix up the incomplete Webserver project so that it integrates with the uIP stack correctly. Add simple HTTP webserver as a placeholder until FatFS can be integrated.
Begin to look into the RNDIS Host Class Driver, which seems to crash on test hardware after many packets have been received.
Diffstat (limited to 'Projects/Incomplete/Webserver/Lib/uip/conf')
-rw-r--r--Projects/Incomplete/Webserver/Lib/uip/conf/apps-conf.h25
-rw-r--r--Projects/Incomplete/Webserver/Lib/uip/conf/uip-conf.h11
2 files changed, 16 insertions, 20 deletions
diff --git a/Projects/Incomplete/Webserver/Lib/uip/conf/apps-conf.h b/Projects/Incomplete/Webserver/Lib/uip/conf/apps-conf.h
index 60a7c9eb0..00919f221 100644
--- a/Projects/Incomplete/Webserver/Lib/uip/conf/apps-conf.h
+++ b/Projects/Incomplete/Webserver/Lib/uip/conf/apps-conf.h
@@ -1,15 +1,20 @@
#ifndef __APPS_CONF_H__
#define __APPS_CONF_H__
-//Here we include the header file for the application(s) we use in our project.
-
-//#include "smtp.h"
-//#include "hello-world.h"
-//#include "simple-httpd.h"
-//#include "telnetd.h"
-//#include "webserver.h"
-//#include "dhcpc.h"
-//#include "resolv.h"
-//#include "webclient.h"
+ enum Webserver_States_t
+ {
+ WEBSERVER_STATE_SendHeaders,
+ WEBSERVER_STATE_SendData,
+ WEBSERVER_STATE_Closed,
+ };
+
+ typedef struct
+ {
+ uint8_t CurrentState;
+ char* SendPos;
+ } uip_tcp_appstate_t;
+
+ #define UIP_APPCALL WebserverAppCallback
+ void UIP_APPCALL(void);
#endif /*__APPS_CONF_H__*/
diff --git a/Projects/Incomplete/Webserver/Lib/uip/conf/uip-conf.h b/Projects/Incomplete/Webserver/Lib/uip/conf/uip-conf.h
index d46fa265c..d3d9bc453 100644
--- a/Projects/Incomplete/Webserver/Lib/uip/conf/uip-conf.h
+++ b/Projects/Incomplete/Webserver/Lib/uip/conf/uip-conf.h
@@ -6,15 +6,6 @@
#include <stdio.h>
#include <stdbool.h>
-typedef int uip_tcp_appstate_t;
-typedef int uip_udp_appstate_t;
-
-#define UIP_APPCALL TCPCallback
-#define UIP_UDP_APPCALL TCPCallback
-
-void UIP_APPCALL(void);
-void UIP_UDP_APPCALL(void);
-
#define UIP_CONF_LLH_LEN 14
/**
@@ -68,7 +59,7 @@ typedef unsigned short uip_stats_t;
*
* \hideinitializer
*/
-#define UIP_CONF_BUFFER_SIZE 1100
+#define UIP_CONF_BUFFER_SIZE 1500
/**
* CPU byte order.
*