gjhn

Dependents:   BLE_GENERALE

Fork of X_NUCLEO_IDB0XA1 by ST

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ble_clock.c Source File

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 /*---------------------------------------------------------------------------*/