Wouter van Kleunen / X_NUCLEO_IDB0XA1

Fork of X_NUCLEO_IDB0XA1 by ST

Committer:
Wolfgang Betz
Date:
Tue Oct 06 14:25:08 2015 +0200
Revision:
130:770ce14d3d15
Include mbed-classic version

Derived from
- repo (on Codex): gitolite@codex.cro.st.com:x-nucleodev/X-NUCLEO-IKC01A1-MBED.git
- branch: ble_wb
- SHA1 ID: 5ccc73e35868169e42132c0d1c056f908a6d70c0

Who changed what in which revision?

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