Kenji Arai / iSerial

Dependencies:   RingBuffer

Dependents:   Frequency_Counter_w_GPS_1PPS FreqCntr_GPS1PPS_F746F4xx_w_recipro

Fork of iSerial by Yoji KURODA

Files at this revision

API Documentation at this revision

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);
 };