From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2524 invoked by alias); 11 Sep 2007 14:26:46 -0000 Received: (qmail 2516 invoked by uid 22791); 11 Sep 2007 14:26:45 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0910.google.com (HELO rv-out-0910.google.com) (209.85.198.191) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 11 Sep 2007 14:26:40 +0000 Received: by rv-out-0910.google.com with SMTP id c27so1242109rvf for ; Tue, 11 Sep 2007 07:26:38 -0700 (PDT) Received: by 10.141.15.19 with SMTP id s19mr2367853rvi.1189520798482; Tue, 11 Sep 2007 07:26:38 -0700 (PDT) Received: by 10.141.197.6 with HTTP; Tue, 11 Sep 2007 07:26:38 -0700 (PDT) Message-ID: Date: Tue, 11 Sep 2007 14:26:00 -0000 From: Alexandre Reply-To: thekyz@gmail.com To: Alexandre , ecos-discuss In-Reply-To: <20070911141526.GF23980@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070911141526.GF23980@lunn.ch> X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] I2C Driver not initializing X-SW-Source: 2007-09/txt/msg00057.txt.bz2 > Is this a I2C device driver you have written yourself? Or is it one of > the existing device drivers? Well it's one I've written myself as i didn't found any driver for the LPC2XXX port. > What do you have in the cdl file for the driver? Actually, nothing, the driver part is style in my user code as I wanted to test it before even trying to include it in eCos. I added the package "I2C Support" to my package build and tried to link my functions to it. Everything compiles just fine and i can access the generic I2C functions as the headers are added to my source. > compile -library=libextras.a my_i2c.c libextras.a already exists in my config and contains my serial devices configuration. It does not contain anything about i2c however, should it ? > 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. Well even the generic I2C driver code is not initialized so I think I made a mistake by forgetting something or misunderstanding the whole concept ^^ Alex -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss