LPC1768 Mini-DK EasyWeb application with SPI TFT output. Started from EasyWebCR and modified for DM9161 PHY support.
easyweb.h
00001 /****************************************************************** 00002 ***** ***** 00003 ***** Name: easyweb.h ***** 00004 ***** Ver.: 1.0 ***** 00005 ***** Date: 17/12/2012 ***** 00006 ***** Auth: Frank Vannieuwkerke ***** 00007 ***** Func: header-file for easyweb.c ***** 00008 ***** Rewrite from Andreas Dannenberg ***** 00009 ***** HTWK Leipzig ***** 00010 ***** university of applied sciences ***** 00011 ***** Germany ***** 00012 ***** adannenb@et.htwk-leipzig.de ***** 00013 ***** ***** 00014 ******************************************************************/ 00015 00016 #ifndef __EASYWEB_H 00017 #define __EASYWEB_H 00018 00019 const unsigned char GetResponse[] = // 1st thing our server sends to a client 00020 { 00021 "HTTP/1.0 200 OK\r\n" // protocol ver 1.0, code 200, reason OK 00022 "Content-Type: text/html\r\n" // type of data we want to send 00023 "\r\n" // indicate end of HTTP-header 00024 }; 00025 void start(void); 00026 void InitOsc(void); // prototypes 00027 void InitPorts(void); 00028 void HTTPServer(void); 00029 void InsertDynamicValues(void); 00030 unsigned int GetAD7Val(void); 00031 unsigned int GetTempVal(void); 00032 00033 unsigned char *Pwebsite; // pointer to website 00034 unsigned int HTTPBytesToSend; // bytes left to send 00035 00036 unsigned char HTTPStatus; // status byte 00037 #define HTTP_SEND_PAGE 0x01 // help flag 00038 00039 #endif 00040
Generated on Thu Jul 14 2022 05:47:26 by 1.7.2