Matthew Lister / X_NUCLEO_IDB0XA1
Committer:
Wolfgang Betz
Date:
Tue Oct 06 15:19:19 2015 +0200
Revision:
131:e09947216ccb
Parent:
130:770ce14d3d15
Get a first compilation thru

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