4.104.115
Last change
on this file since 26fb4aa 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:
1.0 KB
|
Line | |
---|
1 | /* |
---|
2 | * Time of Day (TOD) Handler |
---|
3 | */ |
---|
4 | |
---|
5 | /* COPYRIGHT (c) 1989-2007. |
---|
6 | * On-Line Applications Research Corporation (OAR). |
---|
7 | * |
---|
8 | * The license and distribution terms for this file may be |
---|
9 | * found in the file LICENSE in this distribution or at |
---|
10 | * http://www.rtems.com/license/LICENSE. |
---|
11 | * |
---|
12 | * $Id$ |
---|
13 | */ |
---|
14 | |
---|
15 | #if HAVE_CONFIG_H |
---|
16 | #include "config.h" |
---|
17 | #endif |
---|
18 | |
---|
19 | #include <rtems/system.h> |
---|
20 | #include <rtems/score/object.h> |
---|
21 | #include <rtems/score/thread.h> |
---|
22 | #include <rtems/score/tod.h> |
---|
23 | #include <rtems/score/watchdog.h> |
---|
24 | |
---|
25 | /*PAGE |
---|
26 | * |
---|
27 | * _TOD_Handler_initialization |
---|
28 | * |
---|
29 | * This routine initializes the time of day handler. |
---|
30 | * |
---|
31 | * Input parameters: |
---|
32 | * microseconds_per_tick - microseconds between clock ticks |
---|
33 | * |
---|
34 | * Output parameters: NONE |
---|
35 | */ |
---|
36 | |
---|
37 | void _TOD_Handler_initialization( |
---|
38 | uint32_t microseconds_per_tick |
---|
39 | ) |
---|
40 | { |
---|
41 | /* POSIX format TOD (timespec) */ |
---|
42 | _Timestamp_Set( &_TOD_Now, TOD_SECONDS_1970_THROUGH_1988, 0 ); |
---|
43 | |
---|
44 | /* Uptime (timespec) */ |
---|
45 | _Timestamp_Set_to_zero( &_TOD_Uptime ); |
---|
46 | |
---|
47 | /* TOD has not been set */ |
---|
48 | _TOD_Is_set = FALSE; |
---|
49 | _TOD_Activate(); |
---|
50 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.