ble
Dependencies: HC_SR04_Ultrasonic_Library Servo mbed
Fork of FIP_REV1 by
BlueNRG_F4_BSP/src/clock.c
- Committer:
- julientiron
- Date:
- 2015-07-09
- Revision:
- 4:69a35a56ac48
- Parent:
- 0:3d641e170a74
File content as of revision 4:69a35a56ac48:
#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); } /*---------------------------------------------------------------------------*/