From: Marc Kleine-Budde <mkl@pengutronix.de>
To: puneet.sharma@moschip.com
Cc: "linux-can@vger.kernel.org" <linux-can@vger.kernel.org>
Subject: Re: CAN Driver
Date: Thu, 06 Dec 2012 10:44:55 +0100 [thread overview]
Message-ID: <50C06917.9000401@pengutronix.de> (raw)
In-Reply-To: <1354785999.5871.8.camel@punsfloyd-desktop>
[-- Attachment #1: Type: text/plain, Size: 966 bytes --]
On 12/06/2012 10:26 AM, Puneet Sharma wrote:
> Thanks a lot for the immediate response. I cannot test the controller
> in kernel as it increases the abstraction which is not desirable in
> my case.
YMMV :)
> My intention is to write simple test cases which can test the
> controller thereby exploiting the basic functionalities of the
> controller.
>
> If you can give me some points namely some minimum functions that can
> help me to do so.
You're using a at91sam9263, right?. Then have a look at the linux driver.
To setup the controller:
at91_can_probe();
at91_open();
To send a message:
at91_start_xmit();
To receive a message:
at91_poll_rx();
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 261 bytes --]
next prev parent reply other threads:[~2012-12-06 9:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1346761707.5009.4.camel@punsfloyd-desktop>
[not found] ` <5045F53F.7070209@pengutronix.de>
[not found] ` <1354779353.5010.2.camel@punsfloyd-desktop>
2012-12-06 9:02 ` CAN Driver Marc Kleine-Budde
[not found] ` <1354785999.5871.8.camel@punsfloyd-desktop>
2012-12-06 9:44 ` Marc Kleine-Budde [this message]
[not found] ` <1354787514.6620.3.camel@punsfloyd-desktop>
2012-12-06 10:09 ` Marc Kleine-Budde
[not found] ` <1354789804.6620.6.camel@punsfloyd-desktop>
2012-12-06 10:42 ` Marc Kleine-Budde
2012-12-06 10:43 ` Puneet Sharma
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=50C06917.9000401@pengutronix.de \
--to=mkl@pengutronix.de \
--cc=linux-can@vger.kernel.org \
--cc=puneet.sharma@moschip.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox