source: rtems/cpukit/include/rtems/rtems/timerdata.h @ 0f5b2c09

5
Last change on this file since 0f5b2c09 was a6e7d5e4, checked in by Sebastian Huber <sebastian.huber@…>, on 11/12/18 at 08:00:36

score: Move internal structures to objectdata.h

Update #3598.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup ClassicTimerImpl
5 *
6 * @brief Classic Partition Manager Data Structures
7 */
8
9/*
10 * COPYRIGHT (c) 1989-2011.
11 * On-Line Applications Research Corporation (OAR).
12 *
13 * Copyright (c) 2009, 2016 embedded brains GmbH.
14 *
15 * The license and distribution terms for this file may be
16 * found in the file LICENSE in this distribution or at
17 * http://www.rtems.org/license/LICENSE.
18 */
19
20#ifndef _RTEMS_RTEMS_TIMERDATA_H
21#define _RTEMS_RTEMS_TIMERDATA_H
22
23#include <rtems/rtems/timer.h>
24#include <rtems/score/objectdata.h>
25#include <rtems/score/watchdog.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31/**
32 * @addtogroup ClassicTimerImpl
33 *
34 * @{
35 */
36
37/**
38 *  The following records define the control block used to manage
39 *  each timer.
40 */
41typedef struct {
42  /** This field is the object management portion of a Timer instance. */
43  Objects_Control  Object;
44  /** This field is the Watchdog instance which will be the scheduled. */
45  Watchdog_Control Ticker;
46  /** This field indicates what type of timer this currently is. */
47  Timer_Classes    the_class;
48  /** This field is the timer service routine. */
49  rtems_timer_service_routine_entry routine;
50  /** This field is the timer service routine user data. */
51  void *user_data;
52  /** This field is the timer interval in ticks or seconds. */
53  Watchdog_Interval initial;
54  /** This field is the timer start time point in ticks. */
55  Watchdog_Interval start_time;
56  /** This field is the timer stop time point in ticks. */
57  Watchdog_Interval stop_time;
58}   Timer_Control;
59
60/** @} */
61
62#ifdef __cplusplus
63}
64#endif
65
66#endif
67/* end of include file */
Note: See TracBrowser for help on using the repository browser.