Upgrade to latest mbed-drivers version
diff --git a/yotta/data/example-benchmark/main.cpp b/yotta/data/example-benchmark/main.cpp
index be2148a..23c87b6 100644
--- a/yotta/data/example-benchmark/main.cpp
+++ b/yotta/data/example-benchmark/main.cpp
@@ -933,8 +933,9 @@
}
#include "mbed/test_env.h"
+#include "minar/minar.h"
-int main() {
+static void run() {
/* Use 115200 bps for consistency with other examples */
Serial pc(USBTX, USBRX);
pc.baud(115200);
@@ -946,4 +947,8 @@
MBED_HOSTTEST_RESULT(benchmark(0, NULL) == 0);
}
+void app_start(int, char*[]) {
+ minar::Scheduler::postCallback(FunctionPointer0<void>(run).bind());
+}
+
#endif /* TARGET_LIKE_MBED */