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 FastIO by
Revision 12:973e253323c9, committed 2015-05-04
- Comitter:
- Sissors
- Date:
- Mon May 04 16:42:39 2015 +0000
- Parent:
- 11:327ae1d5fecb
- Child:
- 13:0e21ffc6cb84
- Commit message:
- FastIn/FastOut didn't properly inherit probably
Changed in this revision
| FastIO.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/FastIO.h Tue Dec 23 11:47:08 2014 +0000
+++ b/FastIO.h Mon May 04 16:42:39 2015 +0000
@@ -104,8 +104,7 @@
* @param pin pin the FastOut object should be used for
* @param initial (optional) initial state of the pin after construction: default is 0 (low)
*/
- FastOut() {
- FastInOut<pin>::FastInOut();
+ FastOut() : FastInOut<pin>::FastInOut() {
write(initial);
SET_DIR_OUTPUT;
}
@@ -142,8 +141,7 @@
* @param pin pin the FastIn object should be used for
* @param pinmode (optional) initial mode of the pin after construction: default is PullDefault
*/
- FastIn() {
- FastInOut<pin>::FastInOut();
+ FastIn() : FastInOut<pin>::FastInOut() {
SET_MODE(pinmode);
SET_DIR_INPUT;
}
