[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BOUNCE rtl@rtlinux.org: Approval required: (fwd)
- To: rtl@rtlinux.org
- Subject: BOUNCE rtl@rtlinux.org: Approval required: (fwd)
- From: Der Herr Hofrat <der.herr@hofr.at>
- Date: Fri, 13 Jul 2001 16:19:03 +0200 (CEST)
>From owner-rtl Fri Jul 13 03:17:35 2001
Received: from hq.fsmlabs.com (localhost [[UNIX: localhost]])
by localhost.localdomain (8.11.2/8.11.2) with ESMTP id f6D9HYD23403
for <rtl@fsmlabs.com>; Fri, 13 Jul 2001 03:17:35 -0600
Received: (qmail 21195 invoked by uid 1000); 13 Jul 2001 09:05:39 -0000
Date: Fri, 13 Jul 2001 11:05:39 +0200
From: Michael Barabanov <baraban@fsmlabs.com>
To: rtl@fsmlabs.com
Subject: Re: [rtl] rt_com. [ rt_com_write() ]
Message-ID: <20010713110539.A21177@huevo.fsmlabs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20010711144209.27741.qmail@nwcst322.netaddress.usa.net>
User-Agent: Mutt/1.3.18i
Organization: FSMLabs
> 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 owner-rtl@fsmlabs.com -----