From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12530 invoked by alias); 7 Sep 2007 12:53:57 -0000 Received: (qmail 12519 invoked by uid 22791); 7 Sep 2007 12:53:56 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0910.google.com (HELO rv-out-0910.google.com) (209.85.198.186) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 07 Sep 2007 12:53:52 +0000 Received: by rv-out-0910.google.com with SMTP id c27so384115rvf for ; Fri, 07 Sep 2007 05:53:50 -0700 (PDT) Received: by 10.115.22.1 with SMTP id z1mr676689wai.1189169630641; Fri, 07 Sep 2007 05:53:50 -0700 (PDT) Received: by 10.114.15.3 with HTTP; Fri, 7 Sep 2007 05:53:50 -0700 (PDT) Message-ID: Date: Fri, 07 Sep 2007 12:53:00 -0000 From: Alexandre Reply-To: thekyz@gmail.com To: Alexandre , ecos-discuss@ecos.sourceware.org In-Reply-To: <20070907125007.GR32192@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070907125007.GR32192@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 Bus definition problem X-SW-Source: 2007-09/txt/msg00034.txt.bz2 Ok it works ! Thank you, do you know what the error is about so ? On 9/7/07, Andrew Lunn wrote: > Hi Alex > > Try this: > > static cyg_lpc2xxx_i2c_extra extra; > > CYG_I2C_BUS(i2cBusLpc, > cyg_lpc2xxx_i2c_init, > cyg_lpc2xxx_i2c_tx, > cyg_lpc2xxx_i2c_rx, > cyg_lpc2xxx_i2c_stop, > ((void*)(&extra)) > ); > > void cyg_user_start(void) > { > > CYG_I2C_DEVICE(i2cDevCamera, > &i2cBusLpc, > (cyg_uint16)I2C_CAMERA_ADDRESS, > (cyg_uint16)0, > (cyg_uint32)0 > ); > } > > 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