summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/watchdogticks.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-13 17:16:15 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-25 07:15:18 +0100
commitb8648bdc0c4932b954b73e3e95301a024229ff22 (patch)
tree33f038a06c529848bb505217d5eb9ffc7bb542de /cpukit/include/rtems/score/watchdogticks.h
parentconfig: Remove CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE (diff)
downloadrtems-b8648bdc0c4932b954b73e3e95301a024229ff22.tar.bz2
config: Add _Watchdog_Microseconds_per_tick
Move the microseconds per tick configuration constant out of the configuration table. Add WATCHDOG_MICROSECONDS_PER_TICK_DEFAULT and use it to provide a default definition of the watchdog ticks constants. Update #3875.
Diffstat (limited to 'cpukit/include/rtems/score/watchdogticks.h')
-rw-r--r--cpukit/include/rtems/score/watchdogticks.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/watchdogticks.h b/cpukit/include/rtems/score/watchdogticks.h
index e7cf3f3ea3..226de39c24 100644
--- a/cpukit/include/rtems/score/watchdogticks.h
+++ b/cpukit/include/rtems/score/watchdogticks.h
@@ -50,6 +50,14 @@ typedef uint32_t Watchdog_Interval;
extern volatile Watchdog_Interval _Watchdog_Ticks_since_boot;
/**
+ * @brief The watchdog microseconds per tick.
+ *
+ * This constant is defined by the application configuration via
+ * <rtems/confdefs.h>.
+ */
+extern const uint32_t _Watchdog_Microseconds_per_tick;
+
+/**
* @brief The watchdog nanoseconds per tick.
*
* This constant is defined by the application configuration via