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 mbed-rpc by
Revision 7:496c48896d9e, committed 2014-02-04
- Comitter:
- lktromp
- Date:
- Tue Feb 04 12:41:57 2014 +0000
- Parent:
- 6:be730ea7a82a
- Commit message:
- Removed some comments
Changed in this revision
| RpcClasses.h | Show annotated file Show diff for this revision Revisions of this file |
| rpc.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/RpcClasses.h Fri Jan 31 13:52:45 2014 +0000
+++ b/RpcClasses.h Tue Feb 04 12:41:57 2014 +0000
@@ -20,7 +20,6 @@
namespace mbed {
-//zaza
class RpcI2C : public RPC {
public:
RpcI2C(PinName sda, PinName scl, const char *name=NULL) : RPC(name), o(sda, scl) {}
@@ -57,7 +56,6 @@
private:
I2C o;
};
-//zaza
class RpcDigitalOut : public RPC {
public:
--- a/rpc.h Fri Jan 31 13:52:45 2014 +0000
+++ b/rpc.h Tue Feb 04 12:41:57 2014 +0000
@@ -237,8 +237,6 @@
result->putData<R>(res);
}
-//{"write", rpc_method_caller<int, RpcI2C, int, const char *, int , bool, &RpcI2C::write>},
-
/* Function rpc_function caller
*/
template<typename R, R(*func)()>
@@ -292,8 +290,6 @@
result->putData<R>(res);
}
-//zaza
-
/* Function rpc_method_caller
*/
template<typename R, class T, typename A1, typename A2, typename A3, typename A4, R(T::*member)(A1, A2, A3, A4)>
@@ -305,7 +301,8 @@
R res = (static_cast<T*>(this_ptr)->*member)(arg1, arg2, arg3, arg4);
result->putData<R>(res);
-}//zaza
+}
+
struct rpc_method {
const char *name;
typedef void (*method_caller_t)(RPC*, Arguments*, Reply*);
