Simple example program using semihosting for use with the WebStlink semihosting demo: https://devanlai.github.io/webstlink/demo/

Dependencies:   SemihostedFileSystem mbed

Revision:
0:de88d1ba9126
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Oct 11 23:14:42 2017 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "SemihostedFileSystem.h"
+
+DigitalOut led(LED1);
+
+int main()
+{
+    SemihostedFileHandle semi_stdout(":tt", O_WRONLY);
+    int i = 0;
+    while(1) {
+        semi_stdout.printf("Hello world %d\n", i++);
+        led = (i % 2);
+        wait_ms(1000);
+    }
+}