diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-14 12:58:21 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-25 07:15:18 +0100 |
commit | 308a2e0fdcde94b8549dcf9dcdd42eea3cdc9f27 (patch) | |
tree | 8506b6d215e4b4578627c749befdf2c98bb0b5b2 /cpukit/include/rtems/score/watchdogticks.h | |
parent | config: Add _Watchdog_Microseconds_per_tick (diff) | |
download | rtems-308a2e0fdcde94b8549dcf9dcdd42eea3cdc9f27.tar.bz2 |
config: Add _Watchdog_Ticks_per_timeslice
Move the ticks per timeslice configuration constant out of the
configuration table.
Add WATCHDOG_TICKS_PER_TIMESLICE_DEFAULT and use it to provide a default
definition of the watchdog ticks per timeslice constant.
Update #3875.
Diffstat (limited to 'cpukit/include/rtems/score/watchdogticks.h')
-rw-r--r-- | cpukit/include/rtems/score/watchdogticks.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/watchdogticks.h b/cpukit/include/rtems/score/watchdogticks.h index 226de39c24..ea2651954c 100644 --- a/cpukit/include/rtems/score/watchdogticks.h +++ b/cpukit/include/rtems/score/watchdogticks.h @@ -43,6 +43,11 @@ typedef uint32_t Watchdog_Interval; #define WATCHDOG_NO_TIMEOUT 0 /** + * @brief Default value for the watchdog ticks per timeslice. + */ +#define WATCHDOG_TICKS_PER_TIMESLICE_DEFAULT 50 + +/** * @brief The watchdog ticks counter. * * With a 1ms watchdog tick, this counter overflows after 50 days since boot. @@ -73,6 +78,14 @@ extern const uint32_t _Watchdog_Nanoseconds_per_tick; */ extern const uint32_t _Watchdog_Ticks_per_second; +/** + * @brief The watchdog ticks per timeslice. + * + * This constant is defined by the application configuration via + * <rtems/confdefs.h>. + */ +extern const uint32_t _Watchdog_Ticks_per_timeslice; + /** @} */ #ifdef __cplusplus |