RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
cpukit
include
rtems
rtems
timerdata.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-2-Clause */
2
11
12
/*
13
* COPYRIGHT (c) 1989-2011.
14
* On-Line Applications Research Corporation (OAR).
15
*
16
* Copyright (C) 2009, 2016 embedded brains GmbH & Co. KG
17
*
18
* Redistribution and use in source and binary forms, with or without
19
* modification, are permitted provided that the following conditions
20
* are met:
21
* 1. Redistributions of source code must retain the above copyright
22
* notice, this list of conditions and the following disclaimer.
23
* 2. Redistributions in binary form must reproduce the above copyright
24
* notice, this list of conditions and the following disclaimer in the
25
* documentation and/or other materials provided with the distribution.
26
*
27
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
28
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
31
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37
* POSSIBILITY OF SUCH DAMAGE.
38
*/
39
40
#ifndef _RTEMS_RTEMS_TIMERDATA_H
41
#define _RTEMS_RTEMS_TIMERDATA_H
42
43
#include <
rtems/rtems/timer.h
>
44
#include <
rtems/score/objectdata.h
>
45
#include <
rtems/score/watchdog.h
>
46
47
#ifdef __cplusplus
48
extern
"C"
{
49
#endif
50
56
61
typedef
struct
{
63
Objects_Control
Object
;
65
Watchdog_Control
Ticker
;
67
Timer_Classes
the_class
;
69
rtems_timer_service_routine_entry
routine
;
71
void
*
user_data
;
73
Watchdog_Interval
initial
;
75
Watchdog_Interval
start_time
;
77
Watchdog_Interval
stop_time
;
78
}
Timer_Control
;
79
83
extern
Objects_Information
_Timer_Information
;
84
94
#define TIMER_INFORMATION_DEFINE( max ) \
95
OBJECTS_INFORMATION_DEFINE( \
96
_Timer, \
97
OBJECTS_CLASSIC_API, \
98
OBJECTS_RTEMS_TIMERS, \
99
Timer_Control, \
100
max, \
101
OBJECTS_NO_STRING_NAME, \
102
NULL \
103
)
104
106
107
#ifdef __cplusplus
108
}
109
#endif
110
111
#endif
112
/* end of include file */
timer.h
This header file provides the Timer Manager API.
watchdog.h
This header file provides interfaces of the Watchdog Handler which are used by the implementation and...
rtems_timer_service_routine_entry
rtems_timer_service_routine(*) rtems_timer_service_routine_entry(rtems_id, void *)
This type defines the prototype of routines which can be fired by directives of the Timer Manager.
Definition
timer.h:259
Timer_Classes
Timer_Classes
The timer class indicates how the timer was most recently fired.
Definition
timer.h:114
_Timer_Information
Objects_Information _Timer_Information
The Classic Timer objects information.
Watchdog_Interval
uint32_t Watchdog_Interval
Type is used to specify the length of intervals.
Definition
watchdogticks.h:59
objectdata.h
This header file provides data structures used by the implementation and the Application Configuratio...
Objects_Control
Definition
objectdata.h:61
Objects_Information
The information structure used to manage each API class of objects.
Definition
objectdata.h:198
Timer_Control
Definition
timerdata.h:61
Timer_Control::stop_time
Watchdog_Interval stop_time
Definition
timerdata.h:77
Timer_Control::the_class
Timer_Classes the_class
Definition
timerdata.h:67
Timer_Control::start_time
Watchdog_Interval start_time
Definition
timerdata.h:75
Timer_Control::routine
rtems_timer_service_routine_entry routine
Definition
timerdata.h:69
Timer_Control::initial
Watchdog_Interval initial
Definition
timerdata.h:73
Timer_Control::Object
Objects_Control Object
Definition
timerdata.h:63
Timer_Control::user_data
void * user_data
Definition
timerdata.h:71
Timer_Control::Ticker
Watchdog_Control Ticker
Definition
timerdata.h:65
Watchdog_Control
The control block used to manage each watchdog timer.
Definition
watchdog.h:109
Generated by
1.18.0