NXP Touch Cursor example for LPCXpresso54608, modified for use with Mbed OS.

The tutorial for this example can be found here: https://os.mbed.com/blog/entry/How-to-LPCXpresso54608-touch-panel/

Revision:
0:c107a6f8c368
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/utilities/stdio_thread.cpp	Wed Apr 11 20:46:55 2018 +0000
@@ -0,0 +1,21 @@
+#include <stdarg.h>
+#include <stdio.h>
+#include "mbed.h"
+
+#include "stdio_thread.h"
+
+Mutex printf_mutex;
+
+int safe_printf(const char *format, ...) {
+
+    printf_mutex.lock();
+
+    va_list args;
+    va_start(args, format);
+    int num_bytes = vprintf(format, args);
+
+    va_end(args);
+    printf_mutex.unlock();
+
+    return num_bytes;
+}