LPC1768 Mini-DK EasyWeb application with SPI TFT output. Started from EasyWebCR and modified for DM9161 PHY support.

Dependencies:   Mini-DK mbed

This is a very basic EasyWeb application.

No error checking is performed during initialisation.

Information

If the webpage is not reachable or the 'Webserver running' message does not appear, press the reset button on the Mini-DK and wait until the message 'Webserver running' appears.
This happens sometimes when powering up the Mini-DK because the DM9161 reset pin is NOT controlled by the LPC1768, it is directly connected to the reset button.

IP adress/mask/gateway in tcpip.h : 192.168.0.200 / 255.255.255.0 / 192.168.0.1

MAC address in ethmac.h : 6-5-4-3-2-1

Committer:
frankvnk
Date:
Tue Jan 15 06:43:51 2013 +0000
Revision:
8:4c3db9231e3f
Parent:
0:636056c0b5e1
DM9161_BMSR - bit 13 define modified

Who changed what in which revision?

UserRevisionLine numberNew contents of line
frankvnk 0:636056c0b5e1 1 /******************************************************************
frankvnk 0:636056c0b5e1 2 ***** *****
frankvnk 0:636056c0b5e1 3 ***** Name: easyweb.h *****
frankvnk 0:636056c0b5e1 4 ***** Ver.: 1.0 *****
frankvnk 0:636056c0b5e1 5 ***** Date: 17/12/2012 *****
frankvnk 0:636056c0b5e1 6 ***** Auth: Frank Vannieuwkerke *****
frankvnk 0:636056c0b5e1 7 ***** Func: header-file for easyweb.c *****
frankvnk 0:636056c0b5e1 8 ***** Rewrite from Andreas Dannenberg *****
frankvnk 0:636056c0b5e1 9 ***** HTWK Leipzig *****
frankvnk 0:636056c0b5e1 10 ***** university of applied sciences *****
frankvnk 0:636056c0b5e1 11 ***** Germany *****
frankvnk 0:636056c0b5e1 12 ***** adannenb@et.htwk-leipzig.de *****
frankvnk 0:636056c0b5e1 13 ***** *****
frankvnk 0:636056c0b5e1 14 ******************************************************************/
frankvnk 0:636056c0b5e1 15
frankvnk 0:636056c0b5e1 16 #ifndef __EASYWEB_H
frankvnk 0:636056c0b5e1 17 #define __EASYWEB_H
frankvnk 0:636056c0b5e1 18
frankvnk 0:636056c0b5e1 19 const unsigned char GetResponse[] = // 1st thing our server sends to a client
frankvnk 0:636056c0b5e1 20 {
frankvnk 0:636056c0b5e1 21 "HTTP/1.0 200 OK\r\n" // protocol ver 1.0, code 200, reason OK
frankvnk 0:636056c0b5e1 22 "Content-Type: text/html\r\n" // type of data we want to send
frankvnk 0:636056c0b5e1 23 "\r\n" // indicate end of HTTP-header
frankvnk 0:636056c0b5e1 24 };
frankvnk 0:636056c0b5e1 25 void start(void);
frankvnk 0:636056c0b5e1 26 void InitOsc(void); // prototypes
frankvnk 0:636056c0b5e1 27 void InitPorts(void);
frankvnk 0:636056c0b5e1 28 void HTTPServer(void);
frankvnk 0:636056c0b5e1 29 void InsertDynamicValues(void);
frankvnk 0:636056c0b5e1 30 unsigned int GetAD7Val(void);
frankvnk 0:636056c0b5e1 31 unsigned int GetTempVal(void);
frankvnk 0:636056c0b5e1 32
frankvnk 0:636056c0b5e1 33 unsigned char *Pwebsite; // pointer to website
frankvnk 0:636056c0b5e1 34 unsigned int HTTPBytesToSend; // bytes left to send
frankvnk 0:636056c0b5e1 35
frankvnk 0:636056c0b5e1 36 unsigned char HTTPStatus; // status byte
frankvnk 0:636056c0b5e1 37 #define HTTP_SEND_PAGE 0x01 // help flag
frankvnk 0:636056c0b5e1 38
frankvnk 0:636056c0b5e1 39 #endif
frankvnk 0:636056c0b5e1 40