]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - tmk_core/tool/mbed/mbed-sdk/libraries/tests/mbed/stdio_benchmark/main.cpp
Cleans up quantum/keymap situation, removes extra lufa folders (#416)
[qmk_firmware.git] / tmk_core / tool / mbed / mbed-sdk / libraries / tests / mbed / stdio_benchmark / main.cpp
diff --git a/tmk_core/tool/mbed/mbed-sdk/libraries/tests/mbed/stdio_benchmark/main.cpp b/tmk_core/tool/mbed/mbed-sdk/libraries/tests/mbed/stdio_benchmark/main.cpp
deleted file mode 100644 (file)
index b917981..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#include "mbed.h"
-
-#define TEST_STDIO 0
-
-int main() {
-    printf("\r\n\r\n*** Start of memory write test (2K bytes) ***\r\n");
-
-    // dummy data
-    char buf[2048];
-    int index = 0;
-    for (index = 0; index < 2048; index++) {
-        buf[index] = ~index & 0xFF;
-    }
-
-    // Run the timed write test
-    float starttime, duration;
-    Timer t;
-    t.start();
-    starttime = t.read();
-
-#if TEST_STDIO
-    LocalFileSystem local("local");
-    FILE *fp = fopen("/local/test.dat", "w");
-    fwrite(buf, sizeof(buf[0]), sizeof(buf)/sizeof(buf[0]), fp);
-    fclose(fp);
-#else
-    FILEHANDLE fh = local_file_open("test.dat", O_WRONLY);
-    LocalFileHandle lfh(fh);
-    lfh.write(buf, sizeof(buf));
-    lfh.close();
-#endif
-
-    duration = t.read() - starttime;
-    printf("Write completed in %.2f seconds. Average throughput = %.0f bytes/second.\r\n", duration, 2048/duration);
-}