X_NUCLEO_IDB05A1

Dependencies:   mbed-os-example-ble-Advertising

source/platform/clock.c

Committer:
Vincent Coubard
Date:
2016-09-15
Branch:
sync_with_github
Revision:
253:9665a6f8bbdb
Parent:
177:65d9b1b75fca
Child:
274:4826afdae563

File content as of revision 253:9665a6f8bbdb:


#include "clock.h"
#include "mbed-drivers/wait_api.h"
#include "mbed-drivers/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(uint32_t i)
{
	wait_ms(i);
}
/*---------------------------------------------------------------------------*/