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 LogUtil by
Revision 6:163b9d47fa87, committed 2013-05-01
- Comitter:
- sam_grove
- Date:
- Wed May 01 03:51:03 2013 +0000
- Parent:
- 5:1b4f4d4aec8c
- Parent:
- 4:cf2ada8ed11b
- Child:
- 7:ef45bd2cd9bb
- Commit message:
- Merged LogUtil
Changed in this revision
| LogUtil.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/LogUtil.cpp Fri Apr 26 06:28:00 2013 +0000
+++ b/LogUtil.cpp Wed May 01 03:51:03 2013 +0000
@@ -23,9 +23,8 @@
#include "LogUtil.h"
#include "mbed.h"
- LogUtil::LogUtil()
+ LogUtil::LogUtil() : debug(USBTX, USBRX)
{
- Serial debug(USBTX, USBRX);
debug.baud(921600);
debug.printf("\033[2J"); // clear the terminal
debug.printf("\033[1;1H");// and set the cursor to home
@@ -33,4 +32,5 @@
return;
}
+
\ No newline at end of file
--- a/LogUtil.h Fri Apr 26 06:28:00 2013 +0000
+++ b/LogUtil.h Wed May 01 03:51:03 2013 +0000
@@ -25,6 +25,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include "mbed.h"
#define STREAM stdout
#define LOG(...) \
@@ -79,6 +80,7 @@
/** Construct the LogUtil class and configure
*/
LogUtil();
+ Serial debug;
};
