Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface HttpServer mbed-rpc mbed-rtos mbed TextLCD
Revision 5:bfa9878aa274, committed 2014-02-22
- Comitter:
- yueee_yt
- Date:
- Sat Feb 22 05:55:58 2014 +0000
- Parent:
- 4:155c6ff99458
- Commit message:
- Remove USB MSD!(donot work)
; mbed-rtos is to double registration(in USBHost).
Changed in this revision
--- a/HttpServer.lib Fri Feb 21 07:42:20 2014 +0000 +++ b/HttpServer.lib Sat Feb 22 05:55:58 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/yueee_yt/code/HttpServer/#1b6b021ee21d +http://mbed.org/users/yueee_yt/code/HttpServer/#b8f6a11c70db
--- a/main.cpp Fri Feb 21 07:42:20 2014 +0000
+++ b/main.cpp Sat Feb 22 05:55:58 2014 +0000
@@ -5,16 +5,18 @@
#include "HTTPServer.h"
#include "mbed_rpc.h"
#include "TextLCD.h"
+
EthernetInterface eth;
DigitalOut led4(LED4);
-
-LocalFileSystem local("local");
- void LcdWrite(Arguments* arg, Reply* r); //ADD Here!!
-
+
+LocalFileSystem local("local");
+void LcdWrite(Arguments* arg, Reply* r); //ADD Here!!
+
TextLCD lcd(p24, p26, p27, p28, p29, p30);
-void aliveState(void const *args) {
+void aliveState(void const *args)
+{
while (true) {
led4 = !led4;
Thread::wait(1000);
@@ -26,16 +28,16 @@
printf("********* PROGRAM START ***********\r\n");
Thread thread(aliveState);
RPC::add_rpc_class<RpcDigitalOut>();
- RPC::construct<RpcDigitalOut, PinName, const char*>(LED1, "led1");
- RPC::construct<RpcDigitalOut, PinName, const char*>(LED2, "led2");
- RPC::construct<RpcDigitalOut, PinName, const char*>(LED3, "led3");
+ RPC::construct<RpcDigitalOut, PinName, const char*>(LED1, "led1");
+ RPC::construct<RpcDigitalOut, PinName, const char*>(LED2, "led2");
+ RPC::construct<RpcDigitalOut, PinName, const char*>(LED3, "led3");
RPCFunction rpcFunc(LcdWrite, "LcdWrite"); //ADD Here!!
- lcd.cls();
+ lcd.cls();
lcd.locate(0,0);
printf("EthernetInterface Setting up...\r\n");
if(eth.init()!=0) { //for DHCP Server
- //if(eth.init(IPAddress,NetMasks,Gateway)!=0) { //for Static IP Address
+ //if(eth.init(IPAddress,NetMasks,Gateway)!=0) { //for Static IP Address
printf("EthernetInterface Initialize Error \r\n");
return -1;
}
--- a/mbed.bld Fri Feb 21 07:42:20 2014 +0000 +++ b/mbed.bld Sat Feb 22 05:55:58 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/869cf507173a \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/ed8466a608b4 \ No newline at end of file