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.
Diff: trace_helper.cpp
- Revision:
- 17:2fc16c1d6434
- Parent:
- 8:7594ad70d2bf
- Child:
- 26:f07f5febf97f
diff -r 8d460198a422 -r 2fc16c1d6434 trace_helper.cpp
--- a/trace_helper.cpp Thu May 10 05:16:54 2018 +0100
+++ b/trace_helper.cpp Fri May 11 07:30:15 2018 +0100
@@ -15,13 +15,6 @@
* limitations under the License.
*/
-#include "drivers/Serial.h"
-
-/**
- * Serial object for console tracing
- */
-mbed::Serial pc(USBTX, USBRX, MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE);
-
/**
* If we have tracing library available, we can see traces from within the
* stack. The library could be made unavailable by removing FEATURE_COMMON_PAL
@@ -39,7 +32,6 @@
static void serial_lock();
static void serial_unlock();
- static void trace_printer(const char* str);
/**
* Sets up trace for the application
@@ -52,7 +44,6 @@
mbed_trace_mutex_wait_function_set(serial_lock);
mbed_trace_mutex_release_function_set(serial_unlock);
mbed_trace_init();
- mbed_trace_print_function_set(trace_printer);
}
/**
@@ -71,15 +62,6 @@
mutex.unlock();
}
- /**
- * Prints the Mbed trace, used by trace library.
- * Not intended for local use.
- */
- static void trace_printer(const char* str)
- {
- pc.printf("%s\r\n", str);
- }
-
#else
void setup_trace()