hi Jan,
 
I have resolved my problem, with these instruction
 
   wait = TDMA_WAIT_ON_SOF;
   dev = open_rt("TDMA0", O_RDONLY);
   ioctl_rt(dev, RTMAC_RTIOC_WAITONCYCLE,&wait);
 
then I haven't used your path.
If I need to use the patch, I will inform you if that is correct
 
thanks for all.
 
 


 
2005/12/10, Jan Kiszka <[EMAIL PROTECTED]>:
Leonardo Pappagallo wrote:
> Hi Jan
>
>
>>In particular, in my program I need to know what is cycle number.
>>
>>Hmm, this is not yet exported, but it would be easy to add. Do you
>>depend on the absolute, global value? Otherwise, maintaining your own
>>counter would, of course, already work.
>
>
>
> I need the absolute, global value, it is included into SOF frame
>
>
>
> Thanks
>

I just applied the attached patch to SVN. It should also work for your
older release, just try

   patch -p1 -i waitoncycle_ex.patch

in the RTnet root directory. The usage is as follows:

   struct rtmac_waitinfo waitinfo;

   waitinfo.type = RTMAC_WAIT_ON_DEFAULT;
   rt_dev_ioctl(tdma_device, RTMAC_RTIOC_WAITONCYCLE_EX, &waitinfo);

   cycle_number = waitinfo.cycle_no;

I haven't tested it yet, so I depend on YOU to let me know if it works.

Jan



Reply via email to