summaryrefslogtreecommitdiffstats
path: root/main/common/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/common/timer.h')
-rw-r--r--main/common/timer.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/main/common/timer.h b/main/common/timer.h
index dab62df..b73c632 100644
--- a/main/common/timer.h
+++ b/main/common/timer.h
@@ -1,7 +1,7 @@
/**************************************************************************
*
* Copyright (c) 2013 Alcatel-Lucent
- *
+ *
* Alcatel Lucent licenses this file to You under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. A copy of the License is contained the
@@ -27,40 +27,40 @@
#define _TIMER_H_
struct elapsed_tmr {
- unsigned long start; // Start value of elapsed timeout.
- unsigned long tmrval; // Running timer value
- // (used by elapsed timeout)
- unsigned long currenttmrval; // Current timer value
- // (not used by elapsed timeout)
- unsigned long tpm; // Ticks per millisecond
+ unsigned long start; // Start value of elapsed timeout.
+ unsigned long tmrval; // Running timer value
+ // (used by elapsed timeout)
+ unsigned long currenttmrval; // Current timer value
+ // (not used by elapsed timeout)
+ unsigned long tpm; // Ticks per millisecond
- unsigned long elapsed_low;
- unsigned long elapsed_high;
+ unsigned long elapsed_low;
+ unsigned long elapsed_high;
- unsigned long timeout_low;
- unsigned long timeout_high;
+ unsigned long timeout_low;
+ unsigned long timeout_high;
- unsigned long tmrflags;
+ unsigned long tmrflags;
};
/* Timer flags:
*/
-#define HWTMR_ENABLED (1 << 0)
-#define TIMEOUT_OCCURRED (1 << 1)
+#define HWTMR_ENABLED (1 << 0)
+#define TIMEOUT_OCCURRED (1 << 1)
/* Timer macros:
*/
-#define HWRTMR_IS_ENABLED(tmr) \
- ((tmr)->tmrflags & HWTMR_ENABLED)
+#define HWRTMR_IS_ENABLED(tmr) \
+ ((tmr)->tmrflags & HWTMR_ENABLED)
-#define ELAPSED_TIMEOUT(tmr) \
- ((tmr)->tmrflags & TIMEOUT_OCCURRED)
+#define ELAPSED_TIMEOUT(tmr) \
+ ((tmr)->tmrflags & TIMEOUT_OCCURRED)
/* uMon API timer commands:
*/
-#define TIMER_START 1
-#define TIMER_ELAPSED 2
-#define TIMER_QUERY 3
+#define TIMER_START 1
+#define TIMER_ELAPSED 2
+#define TIMER_QUERY 3
extern unsigned long target_timer(void);
extern void startElapsedTimer(struct elapsed_tmr *tmr,long timeout);