source: rtems/cpukit/score/src/ts64toticks.c @ 2d7ae960

4.115
Last change on this file since 2d7ae960 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 728 bytes
Line 
1/**
2 *  @file  score/src/ts64toticks.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
14#if HAVE_CONFIG_H
15#include "config.h"
16#endif
17
18#include <sys/types.h>
19
20#include <rtems/system.h>
21#include <rtems/config.h>
22#include <rtems/score/timestamp.h>
23#include <rtems/score/tod.h>
24
25#if CPU_TIMESTAMP_USE_INT64 == TRUE
26uint32_t _Timestamp64_To_ticks(
27  const Timestamp64_Control *time
28)
29{
30  uint32_t ticks;
31
32  ticks = *time / rtems_configuration_get_nanoseconds_per_tick();
33  if ( ticks )
34    return ticks;
35  return 1;
36}
37#endif
Note: See TracBrowser for help on using the repository browser.