Hi 
I'm using rtai-1.4 with linux-2.2.16.
I have a problem using the function nano2count.

rt_printk ( KERN_DEBUG
           "RTAI dmm16: going to make reading thread periodic. period = %lu,
nano2count(period) = %lu\n", period, nano2count(period) );

gives me the following output:

<7>RTAI dmm16: going to make reading thread periodic. period =
500000000, nano2count(period) = 0

After the call of 
rt_task_make_periodic_relative_ns( &thread[DMM16_THREAD_READING],
                                   nano2count( start_time ),
                                   nano2count( period ) ) != 0 ) 

the system freezes because of the task code wich will than runn
permanent.
It looks like this:
  do {
   rt_task_wait_period( );
   ...
  }while(1)

Did someone know why I get a value of zero after the nano2count call?

TIA
Vasili
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to