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 rosserial_mbed_lib by
Diff: MbedHardware.h
- Revision:
- 1:ff0ec969dad1
- Parent:
- 0:77afd7560544
- Child:
- 3:1cf99502f396
--- a/MbedHardware.h Fri Aug 19 09:06:30 2011 +0000
+++ b/MbedHardware.h Sun Oct 16 07:19:36 2011 +0000
@@ -1,5 +1,5 @@
/*
- * mbedHardware
+ * MbedHardware
*
* Created on: Aug 17, 2011
* Author: nucho
@@ -9,10 +9,12 @@
#define MBEDHARDWARE_H_
#include"mbed.h"
+#include"MODSERIAL.h"
+
class MbedHardware {
public:
- MbedHardware(Serial* io , long baud= 57600)
+ MbedHardware(MODSERIAL* io , int baud= 57600)
:iostream(*io){
baud_ = baud;
t.start();
@@ -29,7 +31,7 @@
t.start();
}
- void setBaud(long baud) {
+ void setBaud(int baud) {
this->baud_= baud;
}
@@ -57,8 +59,8 @@
}
protected:
- long baud_;
- Serial iostream;
+ int baud_;
+ MODSERIAL iostream;
Timer t;
};
