Commit db2f37b5 authored by jdelange's avatar jdelange
Browse files

* Use function compliant with RTEMS 4.8 and further versions (4.10 and so on)



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@2948 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 0862ac05
......@@ -144,7 +144,7 @@ int __po_hi_wait_for_next_period (__po_hi_task_id task)
return (__PO_HI_SUCCESS);
#elif defined (RTEMS_PURE)
rtems_status_code ret;
ret = rtems_rate_monotonic_period (tasks[task].ratemon_period, (rtems_interval)__PO_HI_TIME_TO_US(tasks[task].period) / _TOD_Microseconds_per_tick);
ret = rtems_rate_monotonic_period (tasks[task].ratemon_period, (rtems_interval)__PO_HI_TIME_TO_US(tasks[task].period) / rtems_configuration_get_microseconds_per_tick());
/*
ret = rtems_rate_monotonic_period (tasks[task].ratemon_period, tasks[task].period / _TOD_Microseconds_per_tick);
*/
......
......@@ -65,7 +65,7 @@ int __po_hi_get_time (__po_hi_time_t* mytime)
}
mytime->sec = _TOD_To_seconds (&current_time);
mytime->nsec = current_time.ticks * _TOD_Microseconds_per_tick * 1000;
mytime->nsec = current_time.ticks * rtems_configuration_get_microseconds_per_tick() * 1000;
return (__PO_HI_SUCCESS);
#elif defined (XENO_NATIVE)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment