1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Timer Manager Initialization |
---|
5 | * @ingroup ClassicTimer |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * COPYRIGHT (c) 1989-2008. |
---|
10 | * On-Line Applications Research Corporation (OAR). |
---|
11 | * |
---|
12 | * The license and distribution terms for this file may be |
---|
13 | * found in the file LICENSE in this distribution or at |
---|
14 | * http://www.rtems.org/license/LICENSE. |
---|
15 | */ |
---|
16 | |
---|
17 | #if HAVE_CONFIG_H |
---|
18 | #include "config.h" |
---|
19 | #endif |
---|
20 | |
---|
21 | #include <rtems/system.h> |
---|
22 | #include <rtems/config.h> |
---|
23 | #include <rtems/rtems/status.h> |
---|
24 | #include <rtems/rtems/support.h> |
---|
25 | #include <rtems/score/thread.h> |
---|
26 | #include <rtems/rtems/timerimpl.h> |
---|
27 | #include <rtems/score/watchdog.h> |
---|
28 | |
---|
29 | void _Timer_Manager_initialization(void) |
---|
30 | { |
---|
31 | _Objects_Initialize_information( |
---|
32 | &_Timer_Information, /* object information table */ |
---|
33 | OBJECTS_CLASSIC_API, /* object API */ |
---|
34 | OBJECTS_RTEMS_TIMERS, /* object class */ |
---|
35 | Configuration_RTEMS_API.maximum_timers , |
---|
36 | /* maximum objects of this class */ |
---|
37 | sizeof( Timer_Control ), /* size of this object's control block */ |
---|
38 | false, /* true if the name is a string */ |
---|
39 | RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */ |
---|
40 | #if defined(RTEMS_MULTIPROCESSING) |
---|
41 | , |
---|
42 | false, /* true if this is a global object class */ |
---|
43 | NULL /* Proxy extraction support callout */ |
---|
44 | #endif |
---|
45 | ); |
---|
46 | |
---|
47 | /* |
---|
48 | * Initialize the pointer to the default timer server control block to NULL |
---|
49 | * indicating that task-based timer support is not initialized. |
---|
50 | */ |
---|
51 | |
---|
52 | _Timer_server = NULL; |
---|
53 | } |
---|