This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: I2C Driver not initializing
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Alexandre <thekyz at gmail dot com>
- Cc: ecos-discuss <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 11 Sep 2007 16:15:26 +0200
- Subject: Re: [ECOS] I2C Driver not initializing
- References: <d5aafeec0709110706v5dd411fi8c67d6c567969d35@mail.gmail.com>
On Tue, Sep 11, 2007 at 04:06:30PM +0200, Alexandre wrote:
> Hello all,
>
> Would anyone happend to know what i'd have to do for a driver to init ?
> I've linked my i2c init function to the generic i2c interface but my
> specific function is never called. I don't think the I2C interface
> init function is called anyway, i supposed it would happen
> automatically after configuring I2C in the ecos config tool but this
> isn't the case.
Is this a I2C device driver you have written yourself? Or is it one of
the existing device drivers?
What do you have in the cdl file for the driver?
compile -library=libextras.a my_i2c.c
Im wondering if the linker has throw the driver out because it is not
being used. By adding the -library=libextras.a the linker cannot throw
it away.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss