rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine );
RTEMS_SUCCESSFUL
- clock tick processed successfully
RTEMS_INVALID_ADDRESS
- time_buffer
is NULL
This directive is used by the Clock device driver to install the
routine
which will be invoked by the internal RTEMS method used to
obtain a highly accurate time of day. It is usually called during
the initialization of the driver.
When the routine
is invoked, it will determine the number of
nanoseconds which have elapsed since the last invocation of
the rtems_clock_tick
directive. It should do
this as quickly as possible with as little impact as possible
on the device used as a clock source.
This directive may be called from an ISR.
This directive is called as part of every service to obtain the current date and time as well as timestamps.
Copyright © 1988-2007OAR Corporation