diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-09-03 15:04:49 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-09-06 12:22:44 +0200 |
commit | 6d2becb78d46c82fd3bacfb94cbfd02e440f3d67 (patch) | |
tree | b354109b1fa3e7c37c6ed3f2dcce57a41a1bcc64 /cpukit/include | |
parent | score: Add _TOD_Is_valid_new_time_of_day() (diff) | |
download | rtems-6d2becb78d46c82fd3bacfb94cbfd02e440f3d67.tar.bz2 |
score: Limit the CLOCK_REALTIME setting
Limit the CLOCK_REALTIME setting to ensure that the CLOCK_REALTIME is defined
for a system uptime of at least 114 years.
Diffstat (limited to 'cpukit/include')
-rw-r--r-- | cpukit/include/rtems/score/todimpl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/todimpl.h b/cpukit/include/rtems/score/todimpl.h index ceeef2e21b..f85689fd9c 100644 --- a/cpukit/include/rtems/score/todimpl.h +++ b/cpukit/include/rtems/score/todimpl.h @@ -116,6 +116,15 @@ extern "C" { (4 * TOD_SECONDS_PER_DAY)) /** + * @brief Seconds from 1970-01-01T00:00:00Z to 2400-01-01T00:00:00Z. + * + * This is the latest time of day which should be set by _TOD_Set(). The year + * 2400 was chosen to guarantee a defined CLOCK_REALTIME within the range of a + * system uptime of about 114 years. + */ +#define TOD_SECONDS_1970_THROUGH_2400 13569465600 + +/** * @brief Earliest year to which an time of day can be initialized. * * The following constant define the earliest year to which an |