BLE lib

Fork of Nucleo_BLE_BlueNRG by STM32 eKairn

Committer:
vijaynvr
Date:
Sun Feb 08 14:25:58 2015 +0000
Revision:
5:beb2c7544ce4
Parent:
0:a948f5f3904c
working;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sjallouli 0:a948f5f3904c 1
sjallouli 0:a948f5f3904c 2 #include "clock.h"
sjallouli 0:a948f5f3904c 3 #include "wait_api.h"
sjallouli 0:a948f5f3904c 4 #include "rtc_time.h"
sjallouli 0:a948f5f3904c 5
sjallouli 0:a948f5f3904c 6 const uint32_t CLOCK_SECOND = 1000;
sjallouli 0:a948f5f3904c 7
sjallouli 0:a948f5f3904c 8 /*---------------------------------------------------------------------------*/
sjallouli 0:a948f5f3904c 9
sjallouli 0:a948f5f3904c 10 void Clock_Init(void)
sjallouli 0:a948f5f3904c 11 {
sjallouli 0:a948f5f3904c 12 //Not Used
sjallouli 0:a948f5f3904c 13 }
sjallouli 0:a948f5f3904c 14
sjallouli 0:a948f5f3904c 15 /*---------------------------------------------------------------------------*/
sjallouli 0:a948f5f3904c 16
sjallouli 0:a948f5f3904c 17 tClockTime Clock_Time(void)
sjallouli 0:a948f5f3904c 18 {
sjallouli 0:a948f5f3904c 19 return clock();
sjallouli 0:a948f5f3904c 20 }
sjallouli 0:a948f5f3904c 21
sjallouli 0:a948f5f3904c 22 /*---------------------------------------------------------------------------*/
sjallouli 0:a948f5f3904c 23 /**
sjallouli 0:a948f5f3904c 24 * Wait for a multiple of 1 ms.
sjallouli 0:a948f5f3904c 25 *
sjallouli 0:a948f5f3904c 26 */
sjallouli 0:a948f5f3904c 27 void Clock_Wait(int i)
sjallouli 0:a948f5f3904c 28 {
sjallouli 0:a948f5f3904c 29 wait_ms(i);
sjallouli 0:a948f5f3904c 30 }
sjallouli 0:a948f5f3904c 31 /*---------------------------------------------------------------------------*/
sjallouli 0:a948f5f3904c 32
sjallouli 0:a948f5f3904c 33
sjallouli 0:a948f5f3904c 34