Serial RPC(Remote Procedure Call) with RTOS Support.

Dependencies:   RPCInterface-rtos mbed-rpc mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
ban4jp
Date:
Thu Apr 09 18:03:39 2015 +0000
Commit message:
initial commit.

Changed in this revision

RPCInterface-rtos.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-rpc.lib Show annotated file Show diff for this revision Revisions of this file
mbed-rtos.lib 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
diff -r 000000000000 -r 65b08d6df124 RPCInterface-rtos.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RPCInterface-rtos.lib	Thu Apr 09 18:03:39 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/ban4jp/code/RPCInterface-rtos/#2aa76667c340
diff -r 000000000000 -r 65b08d6df124 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 09 18:03:39 2015 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+#include "rtos.h"
+#include "SerialRPCInterface.h"
+
+DigitalOut led1(LED1);
+DigitalOut led2(LED2);
+
+void led2_thread(void const *args)
+{
+    while (true) {
+        led2 = !led2;
+        Thread::wait(1000);
+    }
+}
+
+int main()
+{
+    SerialRPCInterface rpc(USBTX, USBRX);
+    Thread thread(led2_thread);
+
+    while (true) {
+        led1 = !led1;
+        Thread::wait(500);
+    }
+}
diff -r 000000000000 -r 65b08d6df124 mbed-rpc.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-rpc.lib	Thu Apr 09 18:03:39 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/teams/mbed/code/mbed-rpc/#fece2d5e8d96
diff -r 000000000000 -r 65b08d6df124 mbed-rtos.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-rtos.lib	Thu Apr 09 18:03:39 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/mbed_official/code/mbed-rtos/#570e569a5b59
diff -r 000000000000 -r 65b08d6df124 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Apr 09 18:03:39 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/487b796308b0
\ No newline at end of file