summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-03-28 19:57:44 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-03-28 19:57:44 +0000
commite0a622cdb4a7488b82f6240aa6b87d50ada863fa (patch)
tree39e6b8e3601dca5598af2ca2fad4bc70b838000a /c/src/lib/libbsp/shared
parent2007-03-28 Chris Johns <chrisj@rtems.org> (diff)
downloadrtems-e0a622cdb4a7488b82f6240aa6b87d50ada863fa.tar.bz2
2007-03-28 Joel Sherrill <joel@OARcorp.com>
* clockdrv_shell.c: Add support to the Clock driver template for rtems_clock_set_nanoseconds_extension and the potential for TOD and timestamps accurate to the nanosecond.
Diffstat (limited to 'c/src/lib/libbsp/shared')
-rw-r--r--c/src/lib/libbsp/shared/ChangeLog6
-rw-r--r--c/src/lib/libbsp/shared/clockdrv_shell.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/shared/ChangeLog b/c/src/lib/libbsp/shared/ChangeLog
index 00724ca587..6e11fe1fad 100644
--- a/c/src/lib/libbsp/shared/ChangeLog
+++ b/c/src/lib/libbsp/shared/ChangeLog
@@ -1,5 +1,11 @@
2007-03-28 Joel Sherrill <joel@OARcorp.com>
+ * clockdrv_shell.c: Add support to the Clock driver template for
+ rtems_clock_set_nanoseconds_extension and the potential for TOD and
+ timestamps accurate to the nanosecond.
+
+2007-03-28 Joel Sherrill <joel@OARcorp.com>
+
PR 1232/bsps
* bsppost.c: It should not be a fatal error to not have a console.
diff --git a/c/src/lib/libbsp/shared/clockdrv_shell.c b/c/src/lib/libbsp/shared/clockdrv_shell.c
index 68f726e205..a211fa6a57 100644
--- a/c/src/lib/libbsp/shared/clockdrv_shell.c
+++ b/c/src/lib/libbsp/shared/clockdrv_shell.c
@@ -152,6 +152,12 @@ void Install_clock(
*/
Clock_driver_support_install_isr( clock_isr, Old_ticker );
+ #if defined(Clock_driver_nanoseconds_since_last_tick)
+ rtems_clock_set_nanoseconds_extension(
+ Clock_driver_nanoseconds_since_last_tick
+ );
+ #endif
+
/*
* Now initialize the hardware that is the source of the tick ISR.
*/