LPC1768 Mini-DK EasyWeb application with SPI TFT output. Started from EasyWebCR and modified for DM9161 PHY support.
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
website.h@8:4c3db9231e3f, 2013-01-15 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
frankvnk | 0:636056c0b5e1 | 1 | /****************************************************************** |
frankvnk | 0:636056c0b5e1 | 2 | ***** ***** |
frankvnk | 0:636056c0b5e1 | 3 | ***** Name: website.c ***** |
frankvnk | 0:636056c0b5e1 | 4 | ***** Ver.: 1.0 ***** |
frankvnk | 0:636056c0b5e1 | 5 | ***** Date: 07/05/2001 ***** |
frankvnk | 0:636056c0b5e1 | 6 | ***** Auth: Andreas Dannenberg ***** |
frankvnk | 0:636056c0b5e1 | 7 | ***** HTWK Leipzig ***** |
frankvnk | 0:636056c0b5e1 | 8 | ***** university of applied sciences ***** |
frankvnk | 0:636056c0b5e1 | 9 | ***** Germany ***** |
frankvnk | 0:636056c0b5e1 | 10 | ***** adannenb@et.htwk-leipzig.de ***** |
frankvnk | 0:636056c0b5e1 | 11 | ***** Func: example HTML-code for easyweb.c ***** |
frankvnk | 0:636056c0b5e1 | 12 | ***** ***** |
frankvnk | 0:636056c0b5e1 | 13 | ******************************************************************/ |
frankvnk | 0:636056c0b5e1 | 14 | |
frankvnk | 0:636056c0b5e1 | 15 | // CodeRed - Example webpage updated |
frankvnk | 0:636056c0b5e1 | 16 | |
frankvnk | 0:636056c0b5e1 | 17 | const unsigned char website[] = { |
frankvnk | 0:636056c0b5e1 | 18 | "<html>\r\n" |
frankvnk | 0:636056c0b5e1 | 19 | "<head>\r\n" |
frankvnk | 0:636056c0b5e1 | 20 | "<meta http-equiv=\"refresh\" content=\"1\">\r\n" |
frankvnk | 0:636056c0b5e1 | 21 | "<title>easyWEB - dynamic website</title>\r\n" |
frankvnk | 0:636056c0b5e1 | 22 | "</head>\r\n" |
frankvnk | 0:636056c0b5e1 | 23 | "\r\n" |
frankvnk | 0:636056c0b5e1 | 24 | "<body bgcolor=\"black\" text=\"#FFFF00\">\r\n" |
frankvnk | 0:636056c0b5e1 | 25 | "<p><b><font color=\"#FFFFFF\" size=\"6\"><i>Hello World from Code Red Technology!</i></font></b></p>\r\n" |
frankvnk | 0:636056c0b5e1 | 26 | "\r\n" |
frankvnk | 0:636056c0b5e1 | 27 | "<p><b>This is a dynamic website hosted by the embedded Webserver</b> <b>easyWEB.</b></p>\r\n" |
frankvnk | 0:636056c0b5e1 | 28 | "<p><b>Hardware:</b></p>\r\n" |
frankvnk | 0:636056c0b5e1 | 29 | "<ul>\r\n" |
frankvnk | 0:636056c0b5e1 | 30 | "<li><b>LPC1768 Mini-DK - DM9161 PHY</b></li>\r\n" |
frankvnk | 0:636056c0b5e1 | 31 | "<li><b>Embedded EMAC Ethernet Controller</b></li>\r\n" |
frankvnk | 0:636056c0b5e1 | 32 | "</ul>\r\n" |
frankvnk | 0:636056c0b5e1 | 33 | "\r\n" |
frankvnk | 0:636056c0b5e1 | 34 | "<p><b>Variable value: AD8% (decimal value from 'val')</b></p>\r\n" |
frankvnk | 0:636056c0b5e1 | 35 | "\r\n" |
frankvnk | 0:636056c0b5e1 | 36 | "<table bgcolor=\"#ff0000\" border=\"5\" cellpadding=\"0\" cellspacing=\"0\" width=\"500\">\r\n" |
frankvnk | 0:636056c0b5e1 | 37 | "<tr>\r\n" |
frankvnk | 0:636056c0b5e1 | 38 | "<td>\r\n" |
frankvnk | 0:636056c0b5e1 | 39 | "<table width=\"AD7%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n" |
frankvnk | 0:636056c0b5e1 | 40 | "<tr><td bgcolor=\"#00ff00\"> </td></tr>\r\n" |
frankvnk | 0:636056c0b5e1 | 41 | "</table>\r\n" |
frankvnk | 0:636056c0b5e1 | 42 | "</td>\r\n" |
frankvnk | 0:636056c0b5e1 | 43 | "</tr>\r\n" |
frankvnk | 0:636056c0b5e1 | 44 | "</table>\r\n" |
frankvnk | 0:636056c0b5e1 | 45 | "\r\n" |
frankvnk | 0:636056c0b5e1 | 46 | "<table border=\"0\" width=\"540\">\r\n" |
frankvnk | 0:636056c0b5e1 | 47 | "<tr>\r\n" |
frankvnk | 0:636056c0b5e1 | 48 | "<td width=\"25%\">0</td>\r\n" |
frankvnk | 0:636056c0b5e1 | 49 | "<td width=\"25%\">256</td>\r\n" |
frankvnk | 0:636056c0b5e1 | 50 | "<td width=\"25%\">512</td>\r\n" |
frankvnk | 0:636056c0b5e1 | 51 | "<td width=\"25%\">768</td>\r\n" |
frankvnk | 0:636056c0b5e1 | 52 | "<td width=\"25%\">1024</td>\r\n" |
frankvnk | 0:636056c0b5e1 | 53 | //"<td width=\"15%\">2.5V</td>\r\n" |
frankvnk | 0:636056c0b5e1 | 54 | //"<td width=\"15%\">3V</td>\r\n" |
frankvnk | 0:636056c0b5e1 | 55 | "</tr>\r\n" |
frankvnk | 0:636056c0b5e1 | 56 | "</table>\r\n" |
frankvnk | 0:636056c0b5e1 | 57 | "\r\n" |
frankvnk | 0:636056c0b5e1 | 58 | "<br><br><br><br>\r\n" |
frankvnk | 0:636056c0b5e1 | 59 | "<table border=\"0\" width=\"500\">\r\n" |
frankvnk | 0:636056c0b5e1 | 60 | "<tr>\r\n" |
frankvnk | 0:636056c0b5e1 | 61 | "<td width=\"1%\"></td>\r\n" |
frankvnk | 0:636056c0b5e1 | 62 | "<td width=\"60%\">\r\n" |
frankvnk | 0:636056c0b5e1 | 63 | "<table bgcolor=\"red\" border=\"5\" cellpadding=\"0\" cellspacing=\"0\" width=\"350\">\r\n" |
frankvnk | 0:636056c0b5e1 | 64 | "<tr>\r\n" |
frankvnk | 0:636056c0b5e1 | 65 | "<td>\r\n" |
frankvnk | 0:636056c0b5e1 | 66 | "<p><b><font color=\"#FFFFFF\" size=\"6\"><i>Page Count: AD1%</i></font></b></p>\r\n" |
frankvnk | 0:636056c0b5e1 | 67 | "</td>\r\n" |
frankvnk | 0:636056c0b5e1 | 68 | "</tr>\r\n" |
frankvnk | 0:636056c0b5e1 | 69 | "</table>\r\n" |
frankvnk | 0:636056c0b5e1 | 70 | "</td>\r\n" |
frankvnk | 0:636056c0b5e1 | 71 | "</tr>\r\n" |
frankvnk | 0:636056c0b5e1 | 72 | "</table>\r\n" |
frankvnk | 0:636056c0b5e1 | 73 | "\r\n" |
frankvnk | 0:636056c0b5e1 | 74 | "\r\n" |
frankvnk | 0:636056c0b5e1 | 75 | "\r\n" |
frankvnk | 0:636056c0b5e1 | 76 | "</body>\r\n" |
frankvnk | 0:636056c0b5e1 | 77 | "</html>\r\n" |
frankvnk | 0:636056c0b5e1 | 78 | "\r\n"}; |