RTEMS 6.1-rc1
timerdata.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
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>
46
47#ifdef __cplusplus
48extern "C" {
49#endif
50
61typedef struct {
71 void *user_data;
79
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
107#ifdef __cplusplus
108}
109#endif
110
111#endif
112/* end of include file */
This header file provides the Timer Manager API.
This header file provides interfaces of the Watchdog Handler which are used by the implementation and...
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
The timer class indicates how the timer was most recently fired.
Definition: timer.h:114
Objects_Information _Timer_Information
The Classic Timer objects information.
uint32_t Watchdog_Interval
Type is used to specify the length of intervals.
Definition: watchdogticks.h:59
This header file provides data structures used by the implementation and the Application Configuratio...
Definition: objectdata.h:61
The information structure used to manage each API class of objects.
Definition: objectdata.h:198
Definition: timerdata.h:61
Watchdog_Interval stop_time
Definition: timerdata.h:77
Timer_Classes the_class
Definition: timerdata.h:67
Watchdog_Interval start_time
Definition: timerdata.h:75
rtems_timer_service_routine_entry routine
Definition: timerdata.h:69
Watchdog_Interval initial
Definition: timerdata.h:73
Objects_Control Object
Definition: timerdata.h:63
void * user_data
Definition: timerdata.h:71
Watchdog_Control Ticker
Definition: timerdata.h:65
The control block used to manage each watchdog timer.
Definition: watchdog.h:109