From: Tomasz Guszkowski <tomasz.guszkowski@pwr.wroc.pl>
To: xenomai@xenomai.org
Subject: [Xenomai] Xenomai FlexCAN driver - where to start?
Date: Wed, 11 Jul 2012 15:10:49 +0200 [thread overview]
Message-ID: <fd35ecb7304a.4ffd9779@pwr.wroc.pl> (raw)
Hello!
I am to write a MPC8309 (powerpc made by Freescale) FlexCAN driver for Xenomai. I have a working non-RT driver for this machine. Xenomai 2.6.0 works flawlessly as far I can assess it.
I have started converting a non-RT version of the driver to rtdm (rtcan) API and after some time spent on it I have an impression it will last a good while. (I am new to Xenomai driver development.)
I have also analyzed mscan and sja1000 drivers and the conclusion is that RT and non-RT versions have almost no common parts, at least meld can't easily point them.
So the questions are:
What is the preferrable starting point for writing Xenomai CAN driver?
Is my path (non-RT driver -> rtdm/rtcan driver) optimal?
Does there exist a better way, for example a kind of a "template" for filling up with some HW-specific code?
Now I think about trying to use a crippled mscan version as a template, despite the fact that mscan and FlexCAN have no common parts besides using Flattened Device Tree for HW description.Is this a good idea?
Any hints are welcomed.
--
Tomek
next reply other threads:[~2012-07-11 13:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-11 13:10 Tomasz Guszkowski [this message]
2012-07-12 13:41 ` [Xenomai] Xenomai FlexCAN driver - where to start? Wolfgang Grandegger
2012-07-16 14:51 ` Wolfgang Grandegger
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=fd35ecb7304a.4ffd9779@pwr.wroc.pl \
--to=tomasz.guszkowski@pwr.wroc.pl \
--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.