bluetooth control motor

Dependents:   BLE_LED_IDB0XA1_demo MOTOR_BLE_V2 Motor_Ble_v1 Motor_Ble_v10223 ... more

Fork of X_NUCLEO_IDB0XA1 by ST

source/platform/clock.c

Committer:
Vincent Coubard
Date:
2016-09-15
Branch:
7b242e25ed2bc04230f0e62d1ae2c076bfc1c354
Revision:
274:4826afdae563
Parent:
253:9665a6f8bbdb

File content as of revision 274:4826afdae563:


#include "clock.h"
#ifdef YOTTA_CFG_MBED_OS
	#include "mbed-drivers/wait_api.h"
	#include "mbed-drivers/rtc_time.h"
#else
    #include "wait_api.h"
	#include "rtc_time.h"
#endif

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);
}
/*---------------------------------------------------------------------------*/