![](/media/cache/profiles/266dc8d468ccd5a7def18714b2647e92.jpg.50x50_q85.jpg)
Serial RPC(Remote Procedure Call) with RTOS Support.
Dependencies: RPCInterface-rtos mbed-rpc mbed-rtos mbed
main.cpp
- Committer:
- ban4jp
- Date:
- 2015-04-09
- Revision:
- 0:65b08d6df124
File content as of revision 0:65b08d6df124:
#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); } }