source: rtems/cpukit/score/src/coretodtickspersec.c @ c86da31c

4.115
Last change on this file since c86da31c was 26fb4aa, checked in by Joel Sherrill <joel.sherrill@…>, on 12/16/08 at 20:53:34

2008-12-16 Joel Sherrill <joel.sherrill@…>

  • libblock/src/bdbuf.c, libmisc/capture/capture-cli.c, libmisc/capture/capture.c, libmisc/mw-fb/mw_uid.c, rtems/include/rtems/rtems/support.h, score/Makefile.am, score/include/rtems/score/tod.h, score/src/coretod.c, score/src/coretodtickle.c: Eliminate all public use of TOD conversion routines. Eliminate _TOD_Microseconds_per_tick and let every place use the field directly from the Configuration Table. This required moving some methods from macros to bodies.
  • score/src/coretodmsecstoticks.c, score/src/coretodtickspersec.c, score/src/coretodusectoticks.c: New files.
  • Property mode set to 100644
File size: 533 bytes
Line 
1/*  COPYRIGHT (c) 1989-2008.
2 *  On-Line Applications Research Corporation (OAR).
3 *
4 *  The license and distribution terms for this file may be
5 *  found in the file LICENSE in this distribution or at
6 *  http://www.rtems.com/license/LICENSE.
7 *
8 *  $Id$
9 */
10
11
12#if HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <rtems/system.h>
17#include <rtems/config.h>
18#include <rtems/score/tod.h>
19
20uint32_t TOD_TICKS_PER_SECOND_method(void)
21{
22  return (TOD_MICROSECONDS_PER_SECOND /
23      rtems_configuration_get_microseconds_per_tick());
24}
Note: See TracBrowser for help on using the repository browser.