summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/erc32/timer/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/sparc/erc32/timer/timer.c')
-rw-r--r--c/src/lib/libbsp/sparc/erc32/timer/timer.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/sparc/erc32/timer/timer.c b/c/src/lib/libbsp/sparc/erc32/timer/timer.c
index f40be89f3b..33445831f0 100644
--- a/c/src/lib/libbsp/sparc/erc32/timer/timer.c
+++ b/c/src/lib/libbsp/sparc/erc32/timer/timer.c
@@ -53,9 +53,15 @@ void Timer_initialize()
}
-#define AVG_OVERHEAD 3 /* It typically takes 3.0 microseconds */
+#if ENABLE_SIS_QUIRKS
+#define AVG_OVERHEAD 8 /* It typically takes 3.0 microseconds */
/* to start/stop the timer. */
-#define LEAST_VALID 2 /* Don't trust a value lower than this */
+#define LEAST_VALID 9 /* Don't trust a value lower than this */
+#else
+#define AVG_OVERHEAD 12 /* It typically takes 3.0 microseconds */
+ /* to start/stop the timer. */
+#define LEAST_VALID 13 /* Don't trust a value lower than this */
+#endif
int Read_timer()
{