forked from Imagelibrary/rtems
Use PRIdWatchdog_Interval to print Watchdog_Interval's.
This commit is contained in:
@@ -102,9 +102,9 @@ rtems_task Task_1(
|
|||||||
directive_failed( status, "rtems_timer_server_fire_after" );
|
directive_failed( status, "rtems_timer_server_fire_after" );
|
||||||
|
|
||||||
status = rtems_timer_get_information( tmid, &info );
|
status = rtems_timer_get_information( tmid, &info );
|
||||||
printf( "Timer 1 scheduled for %d ticks since boot\n",
|
printf( "Timer 1 scheduled for %" PRIdWatchdog_Interval " ticks since boot\n",
|
||||||
info.start_time + info.initial );
|
info.start_time + info.initial );
|
||||||
printf( "Timer Server scheduled for %d ticks since boot\n",
|
printf( "Timer Server scheduled for %" PRIdWatchdog_Interval " ticks since boot\n",
|
||||||
_Timer_Server->Timer.initial + _Timer_Server->Timer.start_time );
|
_Timer_Server->Timer.initial + _Timer_Server->Timer.start_time );
|
||||||
|
|
||||||
puts( "TA1 - rtems_task_wake_after - 1 second" );
|
puts( "TA1 - rtems_task_wake_after - 1 second" );
|
||||||
@@ -118,9 +118,9 @@ rtems_task Task_1(
|
|||||||
|
|
||||||
status = rtems_timer_get_information( tmid, &info );
|
status = rtems_timer_get_information( tmid, &info );
|
||||||
directive_failed( status, "rtems_timer_get_information" );
|
directive_failed( status, "rtems_timer_get_information" );
|
||||||
printf( "Timer 1 scheduled for %d ticks since boot\n",
|
printf( "Timer 1 scheduled for %" PRIdWatchdog_Interval " ticks since boot\n",
|
||||||
info.start_time + info.initial );
|
info.start_time + info.initial );
|
||||||
printf( "Timer Server scheduled for %d ticks since boot\n",
|
printf( "Timer Server scheduled for %" PRIdWatchdog_Interval " ticks since boot\n",
|
||||||
_Timer_Server->Timer.initial + _Timer_Server->Timer.start_time );
|
_Timer_Server->Timer.initial + _Timer_Server->Timer.start_time );
|
||||||
assert( (info.start_time + info.initial) ==
|
assert( (info.start_time + info.initial) ==
|
||||||
(_Timer_Server->Timer.initial + _Timer_Server->Timer.start_time) );
|
(_Timer_Server->Timer.initial + _Timer_Server->Timer.start_time) );
|
||||||
@@ -136,9 +136,9 @@ rtems_task Task_1(
|
|||||||
|
|
||||||
status = rtems_timer_get_information( tmid, &info );
|
status = rtems_timer_get_information( tmid, &info );
|
||||||
directive_failed( status, "rtems_timer_get_information" );
|
directive_failed( status, "rtems_timer_get_information" );
|
||||||
printf( "Timer 1 scheduled for %d ticks since boot\n",
|
printf( "Timer 1 scheduled for %" PRIdWatchdog_Interval " ticks since boot\n",
|
||||||
info.start_time + info.initial );
|
info.start_time + info.initial );
|
||||||
printf( "Timer Server scheduled for %d ticks since boot\n",
|
printf( "Timer Server scheduled for %" PRIdWatchdog_Interval " ticks since boot\n",
|
||||||
_Timer_Server->Timer.initial + _Timer_Server->Timer.start_time );
|
_Timer_Server->Timer.initial + _Timer_Server->Timer.start_time );
|
||||||
assert( (info.start_time + info.initial) ==
|
assert( (info.start_time + info.initial) ==
|
||||||
(_Timer_Server->Timer.initial + _Timer_Server->Timer.start_time) );
|
(_Timer_Server->Timer.initial + _Timer_Server->Timer.start_time) );
|
||||||
|
|||||||
Reference in New Issue
Block a user