Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed HC_SR04_Ultrasonic_Library
BlueNRG_F4_BSP/src/clock.c
- Committer:
- julientiron
- Date:
- 2015-05-19
- Revision:
- 0:3d641e170a74
File content as of revision 0:3d641e170a74:
#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);
}
/*---------------------------------------------------------------------------*/