NUCLEO-F401RE + BlueNRG shield client test (TI Sensortag reading)
bluenrg/src/clock.c
- Committer:
- ostapsky
- Date:
- 2014-08-16
- Revision:
- 0:aa1e012ec210
File content as of revision 0:aa1e012ec210:
#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); } /*---------------------------------------------------------------------------*/