Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: SimpleBLE-ObCP_ENSMM_V2019_Test_BLE_S SimpleBLE-ObCp_test-BLE_envoi SimpleBLE-ObCp_test-BLE Roller_catcher_Envoi ... more
Diff: source/platform/clock.c
- Branch:
- 7b242e25ed2bc04230f0e62d1ae2c076bfc1c354
- Revision:
- 274:4826afdae563
- Parent:
- 253:9665a6f8bbdb
--- a/source/platform/clock.c Thu Sep 15 10:51:36 2016 +0100 +++ b/source/platform/clock.c Thu Sep 15 10:51:37 2016 +0100 @@ -1,7 +1,12 @@ #include "clock.h" -#include "mbed-drivers/wait_api.h" -#include "mbed-drivers/rtc_time.h" +#ifdef YOTTA_CFG_MBED_OS + #include "mbed-drivers/wait_api.h" + #include "mbed-drivers/rtc_time.h" +#else + #include "wait_api.h" + #include "rtc_time.h" +#endif const uint32_t CLOCK_SECOND = 1000; @@ -28,7 +33,4 @@ { wait_ms(i); } -/*---------------------------------------------------------------------------*/ - - - +/*---------------------------------------------------------------------------*/ \ No newline at end of file