5
Last change
on this file since 21275b58 was
ccc6695,
checked in by Sebastian Huber <sebastian.huber@…>, on 11/08/18 at 10:50:24
|
score: Introduce <rtems/score/watchdogticks.h>
Separate the definitions related to watchdog ticks from the watchdog
structures.
Update #3598.
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup ScoreWatchdog |
---|
5 | */ |
---|
6 | |
---|
7 | /* |
---|
8 | * COPYRIGHT (c) 1989-2009. |
---|
9 | * On-Line Applications Research Corporation (OAR). |
---|
10 | * |
---|
11 | * The license and distribution terms for this file may be |
---|
12 | * found in the file LICENSE in this distribution or at |
---|
13 | * http://www.rtems.org/license/LICENSE. |
---|
14 | */ |
---|
15 | |
---|
16 | #ifndef _RTEMS_SCORE_WATCHDOGTICKS_H |
---|
17 | #define _RTEMS_SCORE_WATCHDOGTICKS_H |
---|
18 | |
---|
19 | #include <rtems/score/basedefs.h> |
---|
20 | |
---|
21 | #ifdef __cplusplus |
---|
22 | extern "C" { |
---|
23 | #endif |
---|
24 | |
---|
25 | /** |
---|
26 | * @addtogroup ScoreWatchdog |
---|
27 | * |
---|
28 | * @{ |
---|
29 | */ |
---|
30 | |
---|
31 | /** |
---|
32 | * @brief Type is used to specify the length of intervals. |
---|
33 | * |
---|
34 | * This type is used to specify the length of intervals. |
---|
35 | */ |
---|
36 | typedef uint32_t Watchdog_Interval; |
---|
37 | |
---|
38 | /** |
---|
39 | * @brief Special watchdog ticks value to indicate an infinite wait. |
---|
40 | */ |
---|
41 | #define WATCHDOG_NO_TIMEOUT 0 |
---|
42 | |
---|
43 | /** |
---|
44 | * @brief The watchdog ticks counter. |
---|
45 | * |
---|
46 | * With a 1ms watchdog tick, this counter overflows after 50 days since boot. |
---|
47 | */ |
---|
48 | extern volatile Watchdog_Interval _Watchdog_Ticks_since_boot; |
---|
49 | |
---|
50 | /** |
---|
51 | * @brief The watchdog nanoseconds per tick. |
---|
52 | * |
---|
53 | * This constant is defined by the application configuration via |
---|
54 | * <rtems/confdefs.h>. |
---|
55 | */ |
---|
56 | extern const uint32_t _Watchdog_Nanoseconds_per_tick; |
---|
57 | |
---|
58 | /** |
---|
59 | * @brief The watchdog ticks per second. |
---|
60 | * |
---|
61 | * This constant is defined by the application configuration via |
---|
62 | * <rtems/confdefs.h>. |
---|
63 | */ |
---|
64 | extern const uint32_t _Watchdog_Ticks_per_second; |
---|
65 | |
---|
66 | /** @} */ |
---|
67 | |
---|
68 | #ifdef __cplusplus |
---|
69 | } |
---|
70 | #endif |
---|
71 | |
---|
72 | #endif |
---|
73 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.