> 1) How can I check out that 'rt_com_write()' has successfully written no. of
> characters to port?...As Man page says 'int' as return value...which means no.
> bytes read...But actually in source code of rt_com.o it's return type is
> 'void'.[ I am using RTLinuxV3.0 ]
>
> So How can I ensure that 'rt_com_write()' successfully executed?
> [ I don't want to use 'rt_com_read()' ok...]
You can modify rt_com_write to return an int.
> 2) How can I implement 'timers' using 'rtlinuxV3.0'...which fires at say every
> 500ms. and also able to kill it when not used...?
You can create a thread that does clock_nanosleep in a loop.
To stop this "timer", cancel the thread.
Michael.
the
----- End of forwarded message from [EMAIL PROTECTED] -----
-- [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/