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

Files at this revision

API Documentation at this revision

Comitter:
frankvnk
Date:
Tue Jan 08 17:04:49 2013 +0000
Parent:
3:342aa2cf54e8
Child:
5:ea6fd5ef9eee
Commit message:
TFT.printf replaced with printf because Stream(name) is available again in mbed library.

Changed in this revision

Mini-DK.lib Show annotated file Show diff for this revision Revisions of this file
easyweb.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/Mini-DK.lib	Fri Jan 04 16:44:27 2013 +0000
+++ b/Mini-DK.lib	Tue Jan 08 17:04:49 2013 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/frankvnk/code/Mini-DK/#9517c10e40d2
+http://mbed.org/users/frankvnk/code/Mini-DK/#9399be4feea0
--- a/easyweb.cpp	Fri Jan 04 16:44:27 2013 +0000
+++ b/easyweb.cpp	Tue Jan 08 17:04:49 2013 +0000
@@ -49,11 +49,11 @@
     // gateway     : 192.168.0.1        Stored in tcpip.h  (GWIP_1 to GWIP_1)
     // mask        : 255.255.255.0      Stored in tcpip.h  (SUBMASK_1 to SUBMASK_4)
     TFT.locate(0,0);
-    TFT.printf("IP address\n");
-    TFT.printf("%d.%d.%d.%d\n\n",MYIP_1,MYIP_2,MYIP_3,MYIP_4);
-    TFT.printf("MAC address\n");
-    TFT.printf("%02X:%02X:%02X:%02X:%02X:%02X\n\n",MYMAC_6, MYMAC_5, MYMAC_4, MYMAC_3, MYMAC_2, MYMAC_1);
-    TFT.printf("Initialising..please wait..\n\n");
+    printf("IP address\n");
+    printf("%d.%d.%d.%d\n\n",MYIP_1,MYIP_2,MYIP_3,MYIP_4);
+    printf("MAC address\n");
+    printf("%02X:%02X:%02X:%02X:%02X:%02X\n\n",MYMAC_6, MYMAC_5, MYMAC_4, MYMAC_3, MYMAC_2, MYMAC_1);
+    printf("Initialising..please wait..\n\n");
     TCPLowLevelInit();
 
 /*
@@ -77,7 +77,7 @@
 
   TCPLocalPort = TCP_PORT_HTTP;                  // set port we want to listen to
  
-  TFT.printf("Webserver running");
+  printf("Webserver running");
   
   while (1)                                      // repeat forever
   {
--- a/mbed.bld	Fri Jan 04 16:44:27 2013 +0000
+++ b/mbed.bld	Tue Jan 08 17:04:49 2013 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/63cdd78b2dc1
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/71b101360fb9
\ No newline at end of file