source: rtems/cpukit/score/src/ts64set.c @ 8d7aea0d

4.115
Last change on this file since 8d7aea0d was 8d7aea0d, checked in by Sebastian Huber <sebastian.huber@…>, on 09/29/11 at 09:55:54

2011-09-29 Sebastian Huber <sebastian.huber@…>

  • score/include/rtems/score/tod.h: Declare _TOD_Set_with_timestamp() and _TOD_Get_as_timestamp().
  • score/src/coretodset.c: Define _TOD_Set_with_timestamp().
  • score/src/coretodget.c: Define _TOD_Get_as_timestamp().
  • rtems/src/clockset.c: Use _TOD_Set_with_timestamp().
  • score/include/rtems/score/timestamp64.h, score/src/ts64set.c: Changed parameter types of _Timestamp64_Set().
  • rtems/src/clocktodtoseconds.c: Year 2100 is not a leap year.
  • Property mode set to 100644
File size: 622 bytes
Line 
1/**
2 * @file score/src/ts64set.c
3*/
4
5/*
6 *  COPYRIGHT (c) 1989-2008.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15
16#if HAVE_CONFIG_H
17#include "config.h"
18#endif
19
20#include <rtems/score/timestamp.h>
21
22#if CPU_TIMESTAMP_USE_INT64 == TRUE
23void _Timestamp64_Set(
24  Timestamp64_Control *_time,
25  Timestamp64_Control  _seconds,
26  Timestamp64_Control  _nanoseconds
27)
28{
29  _Timestamp64_implementation_Set( _time, _seconds, _nanoseconds );
30}
31#endif
Note: See TracBrowser for help on using the repository browser.