mbed os with nrf51 internal bandgap enabled to read battery level
Dependents: BLE_file_test BLE_Blink ExternalEncoder
Diff: TESTS/mbedmicro-mbed/call_before_main/main.cpp
- Revision:
- 0:f269e3021894
diff -r 000000000000 -r f269e3021894 TESTS/mbedmicro-mbed/call_before_main/main.cpp --- /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); +}