BLE UART example

Fork of Nucleo_BLE_BlueNRG by ST Americas mbed Team

platform/src/clock.c

Committer:
sjallouli
Date:
2016-01-03
Revision:
3:104f1bba39ca
Parent:
0:a948f5f3904c

File content as of revision 3:104f1bba39ca:


#include "clock.h"
#include "wait_api.h"
#include "rtc_time.h"

const uint32_t CLOCK_SECOND = 1000;

/*---------------------------------------------------------------------------*/

void Clock_Init(void)
{
  //Not Used
}

/*---------------------------------------------------------------------------*/

tClockTime Clock_Time(void)
{
	return clock();
}

/*---------------------------------------------------------------------------*/
/**
 * Wait for a multiple of 1 ms.
 *
 */
void Clock_Wait(int i)
{
	wait_ms(i);
}
/*---------------------------------------------------------------------------*/