diff options
author | Gedare Bloom <gedare@rtems.org> | 2016-06-23 14:41:37 -0400 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2016-06-23 15:17:23 -0400 |
commit | 8987a5dec5da0c2155ecbfaf1b87c89b0ee0c8b3 (patch) | |
tree | 066182d3731090daf59aeaec830001262aeca00d | |
parent | 7be8063afe3625cfb2bad2f00a617dd63666f14a (diff) |
score: use 64-bit watchdog intervals
updates #2732
-rw-r--r-- | cpukit/score/include/rtems/score/watchdog.h | 2 | ||||
-rw-r--r-- | testsuites/sptests/sp37/init.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/watchdog.h b/cpukit/score/include/rtems/score/watchdog.h index 11a5974c26..1f4c3e1917 100644 --- a/cpukit/score/include/rtems/score/watchdog.h +++ b/cpukit/score/include/rtems/score/watchdog.h @@ -50,7 +50,7 @@ typedef struct Watchdog_Control Watchdog_Control; * * This type is used to specify the length of intervals. */ -typedef uint32_t Watchdog_Interval; +typedef uint64_t Watchdog_Interval; /** * @brief The clock discipline to use for the Watchdog timeout interval. diff --git a/testsuites/sptests/sp37/init.c b/testsuites/sptests/sp37/init.c index 68b28a6703..6747ad3095 100644 --- a/testsuites/sptests/sp37/init.c +++ b/testsuites/sptests/sp37/init.c @@ -251,7 +251,7 @@ static void test_clock_tick_functions( void ) rtems_test_assert( rtems_clock_get_ticks_since_boot() == 0xdeadbeef ); rtems_test_assert( rtems_clock_tick_later( 0 ) == 0xdeadbeef ); - rtems_test_assert( rtems_clock_tick_later( 0x8160311e ) == 0x600df00d ); + rtems_test_assert( rtems_clock_tick_later( 0x8160311e ) == 0x1600df00dULL ); _Watchdog_Ticks_since_boot = 0; rtems_test_assert( rtems_clock_tick_later_usec( 0 ) == 1 ); |