From 308a2e0fdcde94b8549dcf9dcdd42eea3cdc9f27 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 14 Feb 2020 12:58:21 +0100 Subject: 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. --- cpukit/include/rtems/score/watchdogticks.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'cpukit/include/rtems/score/watchdogticks.h') 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 @@ -42,6 +42,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. * @@ -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 + * . + */ +extern const uint32_t _Watchdog_Ticks_per_timeslice; + /** @} */ #ifdef __cplusplus -- cgit v1.2.3