Re: How to write comedi device driver

On 17/08/2005 05:13, Pecenin wrote:
> Hi,
> 
> I want try to write a device driver for a PC/104
> board, but i know just a little about comedi source
> code. I look at comedi/drivers directory, and see some
> driver code.
> The question is: i only need write one source code,
> like pcm3730.c, and will i get the board working???
> 
> Any comments would be greatly appreciated.

In comedi/drivers/Makefile.am, you need to add your driver module name 
(e.g. pcm3730.ko) to the module_PROGRAMS macro and define a macro to 
list the sources for the module (e.g. pcm3270_ko_SOURCES = pcm3270.c).

Then you need to run ./autogen.sh in the top level directory to 
regenerate the Makefiles.

Good luck!

-- 
-=( Ian Abbott _at_ MEV Ltd.    E-mail: <abbotti_at_mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

Received on 2005-08-17Z09:54:30