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.
Dependencies: mbed
Diff: mbed-os-example-ble-master/BLE_Thermometer/shields/TARGET_ST_BLUENRG/source/platform/ble_clock.c
- Revision:
- 0:599bc564478b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os-example-ble-master/BLE_Thermometer/shields/TARGET_ST_BLUENRG/source/platform/ble_clock.c Fri Jun 29 01:19:08 2018 +0000 @@ -0,0 +1,36 @@ + +#include "ble_clock.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; + +/*---------------------------------------------------------------------------*/ + +void Clock_Init(void) +{ + //Not Used +} + +/*---------------------------------------------------------------------------*/ + +tClockTime Clock_Time(void) +{ + return clock(); +} + +/*---------------------------------------------------------------------------*/ +/** + * Wait for a multiple of 1 ms. + * + */ +void Clock_Wait(uint32_t i) +{ + wait_ms(i); +} +/*---------------------------------------------------------------------------*/