On 04/26/2013 03:03 PM, kedari appana wrote:
> I am new to socketcan and i write a socketcan driver based on the
> standard can drivers now i want to compile that driver how to compile

Add your driver to your linux kernel under:

    drivers/net/can/

and add an option to

    drivers/net/can/Kconfig
    drivers/net/can/Makefile

follow an existing driver like e.g. flexcan [1][2].

> it and please help me how to write user space applications and how to
> test my hardware so that  my driver code is correct .please help me
> regarding this issue

There are existing userspace applications, e.g. the can-utils, which can
be downlaoded at gitorious.org [3]. Use cansend and candump to send and
receive can messages. Use "ip" of the iproute2 package to configure the
bitrate of your can interface[4]. See that document for more information
about CAN under Linux.

hth,
Marc

[1] http://lxr.free-electrons.com/source/drivers/net/can/Kconfig#L99
[2] http://lxr.free-electrons.com/source/drivers/net/can/Makefile#L23
[3] https://gitorious.org/linux-can/can-utils
[4]
http://lxr.free-electrons.com/source/Documentation/networking/can.txt#L854
-- 
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: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to