Serial RPC(Remote Procedure Call) with RTOS Support.
Dependencies: RPCInterface-rtos mbed-rpc mbed-rtos mbed
Revision 0:65b08d6df124, committed 2015-04-09
- Comitter:
- ban4jp
- Date:
- Thu Apr 09 18:03:39 2015 +0000
- Commit message:
- initial commit.
Changed in this revision
--- /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
--- /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); + } +}
--- /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
--- /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
--- /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