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.
Fork of RPCInterface by
Revision 8:682c65afe534, committed 2012-01-28
- Comitter:
- MichaelW
- Date:
- Sat Jan 28 19:12:00 2012 +0000
- Parent:
- 7:a9e2c45097c8
- 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){
