mbed os with nrf51 internal bandgap enabled to read battery level

Dependents:   BLE_file_test BLE_Blink ExternalEncoder

Revision:
0:f269e3021894
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TESTS/mbedmicro-mbed/call_before_main/main.cpp	Sun Oct 23 15:10:02 2016 +0000
@@ -0,0 +1,16 @@
+#include "greentea-client/test_env.h"
+
+namespace {
+    bool mbed_main_called = false;
+}
+
+extern "C" void mbed_main() {
+    printf("MBED: mbed_main() call before main()\r\n");
+    mbed_main_called = true;
+}
+
+int main() {
+    GREENTEA_SETUP(5, "default_auto");
+    printf("MBED: main() starts now!\r\n");
+    GREENTEA_TESTSUITE_RESULT(mbed_main_called);
+}