From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: edward.robbins@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai and MEN IO Cards/MDIS drivers
Date: Thu, 21 Oct 2010 21:37:31 +0200 [thread overview]
Message-ID: <4CC0967B.4070106@domain.hid> (raw)
In-Reply-To: <1287655084.19729856@domain.hid>
edward.robbins@domain.hid wrote:
> Hi again,
>
> I've almost finished setting up xenomai on my machine. I get very
> little time to work on this project, so wont get back to it until
> Saturday, but the next stage for me is getting the IO cards to work,
> and I thought I'd throw out an email as a precursor.
>
> In this system we have a MEN M32 digital input card and an M28
> digital output card. These come with Linux drivers, but they have to
> run through MEN's cross-platform driver API/framework, MDIS5.
> Previous versions of MDIS supported Xenomai and RTAI explicitly, but
> they seem to have dropped that support in the latest version, and I
> doubt the previous version will 'just work' with newer kernels. I
> have managed to successfully build the standard Linux MDIS drivers
> already.
>
> MDIS adds so many layers of obfuscation and abstraction that on a
> previous occasion when I was attempting to get some M62 analogue
> output cards to work on a VMEbus VXworks platform I gave up on MDIS
> and wrote a new driver from scratch.
>
> Since Linux drivers are more complex to start with, and then there is
> Xenomai as well, and time is tight, I'd rather not do that for these
> cards.
>
> Does anyone have experience of using MEN drivers/IO cards in Xenomai?
> Can I simply wrap the MDIS API with the Xenomai API (described here
> http://www.xenomai.org/documentation/xenomai-2.5/html/api/index.html)
> once I've crawled my way through their code? Is there an easier way?
The driver should use the RTDM API. The porting involves using the API,
but also removing any piece of code which could have an effect on
determinism. So, you really have to read and understand the part of the
driver which will be used by real-time processes.
>
> Also, I presume that as a temporary fall-back I can use the standard,
> non-RT drivers from Xenomai user-land processes?
You can do that of course.
--
Gilles.
prev parent reply other threads:[~2010-10-21 19:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-21 9:58 [Xenomai-help] Xenomai and MEN IO Cards/MDIS drivers edward.robbins
2010-10-21 19:37 ` Gilles Chanteperdrix [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CC0967B.4070106@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=edward.robbins@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.