summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-20 08:31:36 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-24 09:37:22 +0200
commit27cfe7c86ba0801f4961871869ec4e691ca694f3 (patch)
treec273dd3776caa064ea60f910411329369b66cc39 /cpukit/score/include/rtems
parentscore: Add _Thread_Add_timeout_ticks() (diff)
downloadrtems-27cfe7c86ba0801f4961871869ec4e691ca694f3.tar.bz2
score: Add _Watchdog_Ticks_per_second
This value is frequently used. Avoid the function call overhead and the integer division at run-time. Update #3117. Update #3182.
Diffstat (limited to 'cpukit/score/include/rtems')
-rw-r--r--cpukit/score/include/rtems/score/watchdog.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/watchdog.h b/cpukit/score/include/rtems/score/watchdog.h
index 11a5974c26..bbe2a93b26 100644
--- a/cpukit/score/include/rtems/score/watchdog.h
+++ b/cpukit/score/include/rtems/score/watchdog.h
@@ -158,6 +158,14 @@ struct Watchdog_Control {
*/
extern volatile Watchdog_Interval _Watchdog_Ticks_since_boot;
+/**
+ * @brief The watchdog ticks per second.
+ *
+ * This constant is defined by the application configuration via
+ * <rtems/confdefs.h>.
+ */
+extern const uint32_t _Watchdog_Ticks_per_second;
+
/**@}*/
#ifdef __cplusplus