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.
Fork of X_NUCLEO_IDB0XA1 by
ble_clock.c
00001 00002 #include "ble_clock.h" 00003 #ifdef YOTTA_CFG_MBED_OS 00004 #include "mbed-drivers/wait_api.h" 00005 #include "mbed-drivers/rtc_time.h" 00006 #else 00007 #include "wait_api.h" 00008 #include "rtc_time.h" 00009 #endif 00010 00011 const uint32_t CLOCK_SECOND = 1000; 00012 00013 /*---------------------------------------------------------------------------*/ 00014 00015 void Clock_Init(void) 00016 { 00017 //Not Used 00018 } 00019 00020 /*---------------------------------------------------------------------------*/ 00021 00022 tClockTime Clock_Time(void) 00023 { 00024 return clock(); 00025 } 00026 00027 /*---------------------------------------------------------------------------*/ 00028 /** 00029 * Wait for a multiple of 1 ms. 00030 * 00031 */ 00032 void Clock_Wait(uint32_t i) 00033 { 00034 wait_ms(i); 00035 } 00036 /*---------------------------------------------------------------------------*/
Generated on Thu Jul 14 2022 09:39:26 by
1.7.2
