- From: Alexis Berlemont <berlemont.hauw_at_free.fr>
- Date: Fri, 27 May 2005 15:59:24 +0200
Hi, Here is a patch of comedi for the compatibility with RTAI fusion. http://download.gna.org/rtai/experimental/contrib/comedi-0.7.70-over-fusion-0.7.4.patch The patch mainly changes the calls to RTAI API (which has evolved a little in fusion) in rt.c and in rt_pend_tq.c. It also modifies comedi_rt_timer.c : instead of using suspend / resume calls to regulate the interaction between the tasks timer and scan, two semaphores have been added. Thus, we prevent the wake-up (rt_task_resume) of a non-sleeping task (rt_task_suspend not called yet), which triggers buggy behaviours. All modifications are located between precompilation directives (#ifdef CONFIG_COMEDI_FUSION ... #endif). The file rtai.m4 has also been sligthy modified to recognize fusion version. Then, autogen.sh must be launched after having applied the patch. This patch has been tested with the drivers comedi_rt_timer, comedi_parport and comedi_test. I don't have real acquisition stuff. If someone is interested, perhaps he could check the patch with acquisition cards. Alexis.
Received on 2005-05-27Z12:59:24