Library to provide a mechanism to make it easier to add RPC to custom code by using RPCFunction and RPCVariable objects. Also includes a class to receive and process RPC over serial.

Dependencies:   mbed-rpc

Fork of RPCInterface by Michael Walker

Files at this revision

API Documentation at this revision

Comitter:
MichaelW
Date:
Sat Jan 28 19:12:00 2012 +0000
Parent:
7:a9e2c45097c8
Child:
9:bcc2e05e5da4
Commit message:
Updated to not register AnalogOut class if the LPC11U24 as it doesn\t have AnalogOut

Changed in this revision

SerialRPCInterface.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/SerialRPCInterface.cpp	Fri Feb 04 10:55:39 2011 +0000
+++ b/SerialRPCInterface.cpp	Sat Jan 28 19:12:00 2012 +0000
@@ -40,7 +40,6 @@
 void SerialRPCInterface::_RegClasses(void){
     //Register classes with base 
     Base::add_rpc_class<AnalogIn>();
-    Base::add_rpc_class<AnalogOut>();
     Base::add_rpc_class<DigitalIn>();
     Base::add_rpc_class<DigitalOut>();
     Base::add_rpc_class<DigitalInOut>();
@@ -50,6 +49,11 @@
     Base::add_rpc_class<BusIn>();
     Base::add_rpc_class<BusInOut>();
     Base::add_rpc_class<Serial>();
+    
+    //AnalogOut not avaliable on mbed LPC11U24 so only compile for other devices
+    #if !defined(TARGET_LPC11U24) 
+    Base::add_rpc_class<AnalogOut>();
+    #endif
 }
 
 void SerialRPCInterface::Disable(void){