Commit 4da962de authored by jdelange's avatar jdelange
Browse files

* po_hi_time.c

   po_hi_task.c
   - Fix for RTEMS_PURE, would be able to use RTEMS without the POSIX layer



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@2928 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 90e93f3e
......@@ -144,8 +144,10 @@ 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)tasks[task].period * ); */
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, tasks[task].period / _TOD_Microseconds_per_tick);
*/
switch (ret)
{
......
......@@ -59,7 +59,6 @@ int __po_hi_get_time (__po_hi_time_t* mytime)
#elif defined (RTEMS_PURE)
rtems_time_of_day current_time;
tmp = 0;
if (rtems_clock_get (RTEMS_CLOCK_GET_TOD, &current_time) != RTEMS_SUCCESSFUL)
{
__DEBUGMSG ("Error when trying to get the clock on RTEMS\n");
......
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