Changeset 965a442 in rtems for cpukit/score/src/coretodget.c


Ignore:
Timestamp:
Jul 31, 2013, 12:10:20 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
9bf7467
Parents:
b915762
git-author:
Sebastian Huber <sebastian.huber@…> (07/31/13 12:10:20)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/01/13 14:45:46)
Message:

score: Move nanoseconds since last tick support

Move the nanoseconds since last tick support from the Watchdog to the
TOD handler. Now the TOD managment is encapsulated in the TOD_Control
structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/coretodget.c

    rb915762 r965a442  
    2121#include <rtems/score/todimpl.h>
    2222#include <rtems/score/isrlevel.h>
    23 #include <rtems/score/watchdogimpl.h>
    2423
    2524Timestamp_Control *_TOD_Get_with_nanoseconds(
     
    2827)
    2928{
     29  TOD_Control      *tod = &_TOD;
    3030  ISR_Level         level;
    3131  Timestamp_Control offset;
     
    3434
    3535  _ISR_Disable( level );
    36     nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)();
     36    nanoseconds = ( *tod->nanoseconds_since_last_tick )();
    3737    now = *clock;
    3838  _ISR_Enable( level );
Note: See TracChangeset for help on using the changeset viewer.