HW layer for the Nucleo board, it only work with old BLE_API
Dependents: Hello_BLE F446RE-BLE
Fork of X_NUCLEO_IDB0XA1 by
Diff: platform/src/clock.c
- Revision:
- 56:20e83a284019
diff -r 0e4db6804c8d -r 20e83a284019 platform/src/clock.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/platform/src/clock.c Wed Oct 01 09:52:26 2014 +0000 @@ -0,0 +1,34 @@ + +#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); +} +/*---------------------------------------------------------------------------*/ + + +