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 BufferedSerial by
Diff: BufferedSerial.h
- Revision:
- 14:2150f1edc9bc
- Parent:
- 13:b4080afc8cd5
--- a/BufferedSerial.h Sat Feb 13 17:10:39 2016 +0000
+++ b/BufferedSerial.h Mon Apr 04 11:19:49 2016 +0000
@@ -65,6 +65,7 @@
* @endcode
*/
+
/**
* @class BufferedSerial
* @brief Software buffers and interrupt driven tx and rx for Serial
@@ -82,6 +83,16 @@
void prime(void);
public:
+ // TODO
+ void static blocking_printf(const char* str, ...) {
+ va_list args;
+ va_start(args, str);
+ // char buffer[1024];
+ // int n = vsnprintf(buffer, sizeof(buffer), str, args);
+ vprintf(str, args);
+ va_end(args);
+ }
+
/** Create a BufferedSerial port, connected to the specified transmit and receive pins
* @param tx Transmit pin
* @param rx Receive pin
