sapi: Use rtems_config*_get_microseconds_per_tick

This commit is contained in:
Sebastian Huber
2012-11-06 10:34:42 +01:00
parent dd40e1438b
commit 5e86086f1e
6 changed files with 12 additions and 12 deletions

View File

@@ -50,9 +50,9 @@ static void clock_isr_on(const rtems_irq_connect_data *unused)
XSCALE_OS_TIMER_IER |= 0x1;
#if ON_SKYEYE==1
period_num = (TIMER_RATE* Configuration.microseconds_per_tick)/100000;
period_num = (TIMER_RATE* rtems_configuration_get_microseconds_per_tick())/100000;
#else
period_num = (TIMER_RATE* Configuration.microseconds_per_tick)/10000;
period_num = (TIMER_RATE* rtems_configuration_get_microseconds_per_tick())/10000;
#endif
XSCALE_OS_TIMER_MR0 = XSCALE_OS_TIMER_TCR + period_num;
@@ -103,9 +103,9 @@ rtems_irq_connect_data clock_isr_data = {
void Clock_driver_support_initialize_hardware(void)
{
#if ON_SKYEYE==1
period_num = (TIMER_RATE* Configuration.microseconds_per_tick)/100000;
period_num = (TIMER_RATE* rtems_configuration_get_microseconds_per_tick())/100000;
#else
period_num = (TIMER_RATE* Configuration.microseconds_per_tick)/10000;
period_num = (TIMER_RATE* rtems_configuration_get_microseconds_per_tick())/10000;
#endif
}