Re: opening device using orocos-lxrt kernel
Peter Soetens <[email protected]> Wed, 15 Dec 2004 15:55:22 +0100
| Newsgroups | gmane.science.robotics.orocos.user |
|---|---|
| Organization | KU Leuven |
| Message-ID | <[email protected]> |
On Wednesday 15 December 2004 01:21, Briga wrote: > Hi, > I'm coding an implementation of the AnalogInInerface for a normal linux > device in /dev . > I want to use it in a lxrt orocos kernel. > May I use normal function to open and read and write on it? Yes, as long as it is from a non-realtime thread. (thus the ORO_main(), NonRealTimeThread or CompletionProcessor in orocos). I you call the read/write functions from hardrealtime, RTAI will eventually crash in older versions, or set you back permanently back to 'soft' realtime in newer versions. Peter -- ------------------------------------------------------------------------ Peter Soetens, Research Assistant http://www.orocos.org Katholieke Universiteit Leuven Division Production Engineering, tel. +32 16 322773 Machine Design and Automation fax. +32 16 322987 Celestijnenlaan 300B [email protected] B-3001 Leuven Belgium http://www.mech.kuleuven.ac.be/pma ------------------------------------------------------------------------