source: rtems/cpukit/posix/src/ptimer.c @ 88c74ab

4.115
Last change on this file since 88c74ab was 88c74ab, checked in by Sebastian Huber <sebastian.huber@…>, on 07/25/13 at 13:10:11

score: Merge tod implementation into one file

Delete TOD_MICROSECONDS_PER_SECOND, TOD_MICROSECONDS_TO_TICKS() and
TOD_MILLISECONDS_TO_TICKS().

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/**
2 * @file
3 *
4 * @brief Process Timer
5 * @ingroup POSIXAPI
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.com/license/LICENSE.
15 */
16
17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <time.h>
22#include <errno.h>
23#include <limits.h> /* _POSIX_PATH_MAX */
24
25#include <rtems/system.h>
26#include <rtems/config.h>
27#include <rtems/score/isr.h>
28#include <rtems/score/thread.h>
29
30#include <rtems/posix/time.h>
31
32/************************************/
33/* These includes are now necessary */
34/************************************/
35
36#include <unistd.h>
37#include <rtems/rtems/status.h>
38#include <rtems/rtems/types.h>
39#include <rtems/rtems/timer.h>
40#include <rtems/rtems/clock.h>
41#include <rtems/score/wkspace.h>
42#include <pthread.h>
43#include <stdio.h>
44#include <signal.h>
45
46#include <rtems/posix/timerimpl.h>
47
48/*
49 * _POSIX_Timer_Manager_initialization
50 *
51 *  Description:
52 *
53 *  Initialize the internal structure in which the data of all
54 *  the timers are stored
55 */
56
57void _POSIX_Timer_Manager_initialization(void)
58{
59  _Objects_Initialize_information(
60    &_POSIX_Timer_Information,  /* object information table */
61    OBJECTS_POSIX_API,          /* object API */
62    OBJECTS_POSIX_TIMERS,       /* object class */
63    Configuration_POSIX_API.maximum_timers,
64                                /* maximum objects of this class */
65    sizeof( POSIX_Timer_Control ),
66                                /* size of this object's control block */
67    true,                       /* true if names for this object are strings */
68    _POSIX_PATH_MAX             /* maximum length of each object's name */
69#if defined(RTEMS_MULTIPROCESSING)
70    ,
71    false,                      /* true if this is a global object class */
72    NULL                        /* Proxy extraction support callout */
73#endif
74  );
75}
Note: See TracBrowser for help on using the repository browser.