source: rtems/cpukit/rtems/src/rtemstimer.c @ 1095ec1

4.104.114.84.95
Last change on this file since 1095ec1 was 1095ec1, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/18/05 at 09:03:45

Include config.h.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*
2 *  Timer Manager
3 *
4 *
5 *  COPYRIGHT (c) 1989-2002.
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/rtems/status.h>
21#include <rtems/rtems/support.h>
22#include <rtems/score/object.h>
23#include <rtems/score/thread.h>
24#include <rtems/rtems/timer.h>
25#include <rtems/score/tod.h>
26#include <rtems/score/watchdog.h>
27
28/*PAGE
29 *
30 *  _Timer_Manager_initialization
31 *
32 *  This routine initializes all timer manager related data structures.
33 *
34 *  Input parameters:
35 *    maximum_timers - number of timers to initialize
36 *
37 *  Output parameters:  NONE
38 */
39
40void _Timer_Manager_initialization(
41  uint32_t   maximum_timers
42)
43{
44  _Objects_Initialize_information(
45    &_Timer_Information,       /* object information table */
46    OBJECTS_CLASSIC_API,       /* object API */
47    OBJECTS_RTEMS_TIMERS,      /* object class */
48    maximum_timers,            /* maximum objects of this class */
49    sizeof( Timer_Control ),   /* size of this object's control block */
50    FALSE,                     /* TRUE if the name is a string */
51    RTEMS_MAXIMUM_NAME_LENGTH  /* maximum length of an object name */
52#if defined(RTEMS_MULTIPROCESSING)
53    ,
54    FALSE,                     /* TRUE if this is a global object class */
55    NULL                       /* Proxy extraction support callout */
56#endif
57  );
58
59  /*
60   *  Initialize the pointer to the Timer Server TCB to NULL indicating
61   *  that task-based timer support is not initialized.
62   */
63
64  _Timer_Server = NULL;
65}
Note: See TracBrowser for help on using the repository browser.