mbed os with nrf51 internal bandgap enabled to read battery level
Dependents: BLE_file_test BLE_Blink ExternalEncoder
TESTS/mbedmicro-mbed/call_before_main/main.cpp
- Committer:
- elessair
- Date:
- 2016-10-23
- Revision:
- 0:f269e3021894
File content as of revision 0:f269e3021894:
#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); }