From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23810 invoked by alias); 15 Jun 2005 08:08:35 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 23523 invoked by uid 22791); 15 Jun 2005 08:08:31 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 15 Jun 2005 08:08:31 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DiSqo-0001ZY-WA for ecos-discuss@sources.redhat.com; Wed, 15 Jun 2005 10:02:19 +0200 Received: from iv.ro ([194.105.28.94]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jun 2005 10:02:18 +0200 Received: from jani by iv.ro with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jun 2005 10:02:18 +0200 To: ecos-discuss@sources.redhat.com From: Jani Monoses Date: Wed, 15 Jun 2005 08:08:00 -0000 Message-ID: References: <716f48379b9f45399e3f65a19665bb23.clifford.joseph@clarinox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) In-Reply-To: <716f48379b9f45399e3f65a19665bb23.clifford.joseph@clarinox.com> Subject: [ECOS] Re: adding a new i2c device X-SW-Source: 2005-06/txt/msg00105.txt.bz2 > extern cyg_i2c_bus cyg_i2c_xyzzy_bus; \ ... > I am creating a device by using the Macro > > CYG_I2C_DEVICE(cyg_i2c_eeprom, cyg_i2c_xyzzy_bus, 0xA0, 0x00,CYG_I2C_DEFAULT_DELAY); The above macro takes a pointer to cyg_i2c_bus. Try this: CYG_I2C_DEVICE(cyg_i2c_eeprom, &cyg_i2c_xyzzy_bus, 0xA0, 0x00,CYG_I2C_DEFAULT_DELAY); Jani -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss