diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-13 17:16:15 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-25 07:15:18 +0100 |
commit | b8648bdc0c4932b954b73e3e95301a024229ff22 (patch) | |
tree | 33f038a06c529848bb505217d5eb9ffc7bb542de /cpukit/include/rtems/config.h | |
parent | config: Remove CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE (diff) | |
download | rtems-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/config.h')
-rw-r--r-- | cpukit/include/rtems/config.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/cpukit/include/rtems/config.h b/cpukit/include/rtems/config.h index d9f91db741..84917366f3 100644 --- a/cpukit/include/rtems/config.h +++ b/cpukit/include/rtems/config.h @@ -87,12 +87,6 @@ typedef struct { uintptr_t work_space_size; /** - * This field specifies the number of microseconds which elapse - * between clock ticks. This is the basis for RTEMS timing. - */ - uint32_t microseconds_per_tick; - - /** * This field specifies the number of ticks in each task's timeslice. */ uint32_t ticks_per_timeslice; @@ -162,9 +156,9 @@ uintptr_t rtems_configuration_get_stack_space_size( void ); uint32_t rtems_configuration_get_maximum_extensions( void ); #define rtems_configuration_get_microseconds_per_tick() \ - (Configuration.microseconds_per_tick) + (_Watchdog_Microseconds_per_tick) #define rtems_configuration_get_milliseconds_per_tick() \ - (Configuration.microseconds_per_tick / 1000) + (_Watchdog_Microseconds_per_tick / 1000) #define rtems_configuration_get_nanoseconds_per_tick() \ (_Watchdog_Nanoseconds_per_tick) |