1 | /* |
---|
2 | * Timer Manager |
---|
3 | * |
---|
4 | * |
---|
5 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
6 | * On-Line Applications Research Corporation (OAR). |
---|
7 | * All rights assigned to U.S. Government, 1994. |
---|
8 | * |
---|
9 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
10 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
11 | * notice must appear in all copies of this file and its derivatives. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | #include <rtems/system.h> |
---|
17 | #include <rtems/rtems/status.h> |
---|
18 | #include <rtems/score/object.h> |
---|
19 | #include <rtems/score/thread.h> |
---|
20 | #include <rtems/score/tod.h> |
---|
21 | #include <rtems/score/watchdog.h> |
---|
22 | #include <rtems/score/interr.h> |
---|
23 | |
---|
24 | #include <rtems/rtems/types.h> |
---|
25 | #include <rtems/rtems/timer.h> |
---|
26 | |
---|
27 | void _Timer_Manager_initialization( |
---|
28 | unsigned32 maximum_timers |
---|
29 | ) |
---|
30 | { |
---|
31 | } |
---|
32 | |
---|
33 | rtems_status_code rtems_timer_create( |
---|
34 | rtems_name name, |
---|
35 | Objects_Id *id |
---|
36 | ) |
---|
37 | { |
---|
38 | _Internal_error_Occurred( |
---|
39 | INTERNAL_ERROR_RTEMS_API, |
---|
40 | FALSE, |
---|
41 | RTEMS_NOT_CONFIGURED |
---|
42 | ); |
---|
43 | return RTEMS_NOT_CONFIGURED; |
---|
44 | } |
---|
45 | |
---|
46 | rtems_status_code rtems_timer_ident( |
---|
47 | rtems_name name, |
---|
48 | Objects_Id *id |
---|
49 | ) |
---|
50 | { |
---|
51 | _Internal_error_Occurred( |
---|
52 | INTERNAL_ERROR_RTEMS_API, |
---|
53 | FALSE, |
---|
54 | RTEMS_NOT_CONFIGURED |
---|
55 | ); |
---|
56 | return RTEMS_NOT_CONFIGURED; |
---|
57 | } |
---|
58 | |
---|
59 | rtems_status_code rtems_timer_cancel( |
---|
60 | Objects_Id id |
---|
61 | ) |
---|
62 | { |
---|
63 | _Internal_error_Occurred( |
---|
64 | INTERNAL_ERROR_RTEMS_API, |
---|
65 | FALSE, |
---|
66 | RTEMS_NOT_CONFIGURED |
---|
67 | ); |
---|
68 | return RTEMS_NOT_CONFIGURED; |
---|
69 | } |
---|
70 | |
---|
71 | rtems_status_code rtems_timer_delete( |
---|
72 | Objects_Id id |
---|
73 | ) |
---|
74 | { |
---|
75 | _Internal_error_Occurred( |
---|
76 | INTERNAL_ERROR_RTEMS_API, |
---|
77 | FALSE, |
---|
78 | RTEMS_NOT_CONFIGURED |
---|
79 | ); |
---|
80 | return RTEMS_NOT_CONFIGURED; |
---|
81 | } |
---|
82 | |
---|
83 | rtems_status_code rtems_timer_fire_after( |
---|
84 | Objects_Id id, |
---|
85 | rtems_interval ticks, |
---|
86 | rtems_timer_service_routine_entry routine, |
---|
87 | void *user_data |
---|
88 | ) |
---|
89 | { |
---|
90 | _Internal_error_Occurred( |
---|
91 | INTERNAL_ERROR_RTEMS_API, |
---|
92 | FALSE, |
---|
93 | RTEMS_NOT_CONFIGURED |
---|
94 | ); |
---|
95 | return RTEMS_NOT_CONFIGURED; |
---|
96 | } |
---|
97 | |
---|
98 | rtems_status_code rtems_timer_fire_when( |
---|
99 | Objects_Id id, |
---|
100 | rtems_time_of_day *wall_time, |
---|
101 | rtems_timer_service_routine_entry routine, |
---|
102 | void *user_data |
---|
103 | ) |
---|
104 | { |
---|
105 | _Internal_error_Occurred( |
---|
106 | INTERNAL_ERROR_RTEMS_API, |
---|
107 | FALSE, |
---|
108 | RTEMS_NOT_CONFIGURED |
---|
109 | ); |
---|
110 | return RTEMS_NOT_CONFIGURED; |
---|
111 | } |
---|
112 | |
---|
113 | rtems_status_code rtems_timer_reset( |
---|
114 | Objects_Id id |
---|
115 | ) |
---|
116 | { |
---|
117 | _Internal_error_Occurred( |
---|
118 | INTERNAL_ERROR_RTEMS_API, |
---|
119 | FALSE, |
---|
120 | RTEMS_NOT_CONFIGURED |
---|
121 | ); |
---|
122 | return RTEMS_NOT_CONFIGURED; |
---|
123 | } |
---|