Changeset e907f7d9 in rtems


Ignore:
Timestamp:
Mar 28, 2007, 7:58:12 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
e67b6ea1
Parents:
e0a622cd
Message:

2007-03-28 Joel Sherrill <joel@…>

  • clock/ckinit.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. On this BSP however, it is only accurate to the microsecond.
Location:
c/src/lib/libbsp/sparc/erc32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/erc32/ChangeLog

    re0a622cd re907f7d9  
     12007-03-28      Joel Sherrill <joel@OARcorp.com>
     2
     3        * clock/ckinit.c: Add support to the Clock driver template for
     4        rtems_clock_set_nanoseconds_extension and the potential for TOD and
     5        timestamps accurate to the nanosecond. On this BSP however, it is
     6        only accurate to the microsecond.
     7
    182007-03-28      Joel Sherrill <joel@OARcorp.com>
    29
  • c/src/lib/libbsp/sparc/erc32/clock/ckinit.c

    re0a622cd re907f7d9  
    4747extern int CLOCK_SPEED;
    4848
     49
     50uint32_t bsp_clock_nanoseconds_since_last_tick(void)
     51{
     52  uint32_t clicks;
     53
     54  clicks = ERC32_MEC.Real_Time_Clock_Counter;
     55
     56  return (uint32_t) (BSP_Configuration.microseconds_per_tick - clicks) * 1000;
     57}
     58
     59#define Clock_driver_nanoseconds_since_last_tick bsp_clock_nanoseconds_since_last_tick
     60
    4961#define Clock_driver_support_initialize_hardware() \
    5062  do { \
Note: See TracChangeset for help on using the changeset viewer.