Compilation fix for newer mbed-os

Fork of X_NUCLEO_IDB0XA1 by ST

Committer:
Vincent Coubard
Date:
Thu Sep 15 10:51:47 2016 +0100
Branch:
34e2f6254ad7de7fc7f377a0614c3a672cf7cd5c
Revision:
280:fbee0e3444be
Parent:
source/platform/clock.c@274:4826afdae563
Child:
297:c26445716704
Sync with 34e2f6254ad7de7fc7f377a0614c3a672cf7cd5c

2016-07-28 15:27:24+02:00: Andrea Palmieri
Add ble_ prefix to filename

Signed-off-by: Andrea Palmieri <andrea.palmieri@st.com>

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Wolfgang Betz 132:51056160fa4a 1
Wolfgang Betz 132:51056160fa4a 2 #include "clock.h"
Vincent Coubard 274:4826afdae563 3 #ifdef YOTTA_CFG_MBED_OS
Vincent Coubard 274:4826afdae563 4 #include "mbed-drivers/wait_api.h"
Vincent Coubard 274:4826afdae563 5 #include "mbed-drivers/rtc_time.h"
Vincent Coubard 274:4826afdae563 6 #else
Vincent Coubard 274:4826afdae563 7 #include "wait_api.h"
Vincent Coubard 274:4826afdae563 8 #include "rtc_time.h"
Vincent Coubard 274:4826afdae563 9 #endif
Wolfgang Betz 132:51056160fa4a 10
Wolfgang Betz 132:51056160fa4a 11 const uint32_t CLOCK_SECOND = 1000;
Wolfgang Betz 132:51056160fa4a 12
Wolfgang Betz 132:51056160fa4a 13 /*---------------------------------------------------------------------------*/
Wolfgang Betz 132:51056160fa4a 14
Wolfgang Betz 132:51056160fa4a 15 void Clock_Init(void)
Wolfgang Betz 132:51056160fa4a 16 {
Wolfgang Betz 132:51056160fa4a 17 //Not Used
Wolfgang Betz 132:51056160fa4a 18 }
Wolfgang Betz 132:51056160fa4a 19
Wolfgang Betz 132:51056160fa4a 20 /*---------------------------------------------------------------------------*/
Wolfgang Betz 132:51056160fa4a 21
Wolfgang Betz 132:51056160fa4a 22 tClockTime Clock_Time(void)
Wolfgang Betz 132:51056160fa4a 23 {
Wolfgang Betz 132:51056160fa4a 24 return clock();
Wolfgang Betz 132:51056160fa4a 25 }
Wolfgang Betz 132:51056160fa4a 26
Wolfgang Betz 132:51056160fa4a 27 /*---------------------------------------------------------------------------*/
Wolfgang Betz 132:51056160fa4a 28 /**
Wolfgang Betz 132:51056160fa4a 29 * Wait for a multiple of 1 ms.
Wolfgang Betz 132:51056160fa4a 30 *
Wolfgang Betz 132:51056160fa4a 31 */
Wolfgang Betz 132:51056160fa4a 32 void Clock_Wait(uint32_t i)
Wolfgang Betz 132:51056160fa4a 33 {
Wolfgang Betz 132:51056160fa4a 34 wait_ms(i);
Wolfgang Betz 132:51056160fa4a 35 }
Vincent Coubard 274:4826afdae563 36 /*---------------------------------------------------------------------------*/