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.
Diff: SerialRPCInterface.cpp
- Revision:
- 10:9d82e28ffaea
- Parent:
- 9:bcc2e05e5da4
diff -r bcc2e05e5da4 -r 9d82e28ffaea SerialRPCInterface.cpp --- a/SerialRPCInterface.cpp Sat Jan 23 22:28:00 2016 +0000 +++ b/SerialRPCInterface.cpp Mon Mar 14 18:05:38 2016 +0000 @@ -40,24 +40,26 @@ } void SerialRPCInterface::_RegClasses(void){ - /* + //Register classes with base - Base::add_rpc_class<AnalogIn>(); - Base::add_rpc_class<DigitalIn>(); - Base::add_rpc_class<DigitalOut>(); - Base::add_rpc_class<DigitalInOut>(); - Base::add_rpc_class<PwmOut>(); - Base::add_rpc_class<Timer>(); - Base::add_rpc_class<BusOut>(); - Base::add_rpc_class<BusIn>(); - Base::add_rpc_class<BusInOut>(); - Base::add_rpc_class<Serial>(); + #if DEVICE_ANALOGIN + //RPC::add_rpc_class<RpcAnalogIn>(); + #endif + RPC::add_rpc_class<RpcDigitalIn>(); + RPC::add_rpc_class<RpcDigitalOut>(); + RPC::add_rpc_class<RpcDigitalInOut>(); + RPC::add_rpc_class<RpcPwmOut>(); + RPC::add_rpc_class<RpcTimer>(); + //RPC::add_rpc_class<RpcBusOut>(); + //RPC::add_rpc_class<RpcBusIn>(); + //RPC::add_rpc_class<RpcBusInOut>(); + RPC::add_rpc_class<RpcSerial>(); //AnalogOut not avaliable on mbed LPC11U24 so only compile for other devices - #if !defined(TARGET_LPC11U24) - Base::add_rpc_class<AnalogOut>(); + #if DEVICE_ANALOGOUT + //RPC::add_rpc_class<RpcAnalogOut>(); #endif - */ + } void SerialRPCInterface::Disable(void){