2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>

* console/console.c: Convert calls to legacy routine rtems_clock_get(
	RTEMS_CLOCK_GET_xxx, ..) to rtems_clock_get_xxx().
This commit is contained in:
Joel Sherrill
2009-08-10 16:52:54 +00:00
parent cdd352ef07
commit 33e7fc3e8a
2 changed files with 8 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* console/console.c: Convert calls to legacy routine rtems_clock_get(
RTEMS_CLOCK_GET_xxx, ..) to rtems_clock_get_xxx().
2009-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* configure.ac: Rename BSP_BOOTCARD_OPTIONS to

View File

@@ -229,12 +229,12 @@ rtems_isr_entry Prev_modem_isr; /* Previous modem/timer isr */
unsigned long i = 20000; /* In case clock is off */
rtems_interval ticks_per_second, start_ticks, end_ticks, current_ticks;
rtems_clock_get( RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticks_per_second );
rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start_ticks );
ticks_per_second = rtems_clock_get_ticks_per_second();
stack_ticks = rtems_clock_get_ticks_since_boot();
end_ticks = start_ticks + delay;
do {
rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &current_ticks);
current_ticks = rtems_clock_get_ticks_since_boot();
} while ( --i && (current_ticks <= end_ticks) );
CD2401_RECORD_DELAY_INFO(( start_ticks, end_ticks, current_ticks, i ));