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.
Dependents: Frequency_Counter_w_GPS_1PPS FreqCntr_GPS1PPS_F746F4xx_w_recipro
Fork of iSerial by
Revision 6:8d4b95b90c3b, committed 2012-09-03
- Comitter:
- ykuroda
- Date:
- Mon Sep 03 12:01:55 2012 +0000
- Parent:
- 5:d83fc550ccbc
- Child:
- 7:5a25789c3b55
- Commit message:
- flush added
Changed in this revision
| iSerial.cpp | Show annotated file Show diff for this revision Revisions of this file |
| iSerial.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/iSerial.cpp Mon Sep 03 11:18:05 2012 +0000
+++ b/iSerial.cpp Mon Sep 03 12:01:55 2012 +0000
@@ -158,3 +158,10 @@
}
+void
+iSerial::flush(void)
+{
+ while(txbuf.check());
+}
+
+
--- a/iSerial.h Mon Sep 03 11:18:05 2012 +0000
+++ b/iSerial.h Mon Sep 03 12:01:55 2012 +0000
@@ -43,6 +43,8 @@
short int puts(const char* s);
//void printf();
char* printf(const char* format, ...);
+
+ void flush(void);
};
