NUCLEO-F401RE + BlueNRG shield client test (TI Sensortag reading)
Diff: bluenrg/src/clock.c
- Revision:
- 0:aa1e012ec210
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bluenrg/src/clock.c Sat Aug 16 11:00:04 2014 +0000 @@ -0,0 +1,33 @@ +#include "cube_hal.h" +#include "clock.h" + + +const tHalUint32 CLOCK_SECOND = 1000; + +/*---------------------------------------------------------------------------*/ + +void Clock_Init(void) +{ + // FIXME: as long as Cube HAL is initialized this is OK + // Cube HAL default is one clock each 1 ms +} + +/*---------------------------------------------------------------------------*/ + +tClockTime Clock_Time(void) +{ + return HAL_GetTick(); +} + +/*---------------------------------------------------------------------------*/ +/** + * Wait for a multiple of 1 ms. + * + */ +void Clock_Wait(int i) +{ + HAL_Delay(i); +} +/*---------------------------------------------------------------------------*/ + +