summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/clockdrv_shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/shared/clockdrv_shell.c')
-rw-r--r--c/src/lib/libbsp/shared/clockdrv_shell.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/shared/clockdrv_shell.c b/c/src/lib/libbsp/shared/clockdrv_shell.c
index d9b98e2bc9..68f726e205 100644
--- a/c/src/lib/libbsp/shared/clockdrv_shell.c
+++ b/c/src/lib/libbsp/shared/clockdrv_shell.c
@@ -1,7 +1,7 @@
/*
* Clock Tick Device Driver Shell
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2006.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -20,6 +20,14 @@
#error "clockdrv_shell.c: fast idle and N ISRs per tick is not supported"
#endif
+
+/*
+ * This method is rarely used so default it.
+ */
+#ifndef Clock_driver_support_find_timer
+#define Clock_driver_support_find_timer()
+#endif
+
/*
* ISRs until next clock tick
*/
@@ -135,15 +143,18 @@ void Install_clock(
Clock_driver_ticks = 0;
/*
- * Install vector
+ * Find timer -- some BSPs search buses for hardware timer
*/
+ Clock_driver_support_find_timer();
+ /*
+ * Install vector
+ */
Clock_driver_support_install_isr( clock_isr, Old_ticker );
/*
* Now initialize the hardware that is the source of the tick ISR.
*/
-
Clock_driver_support_initialize_hardware();
atexit( Clock_exit );