From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15584 invoked by alias); 4 Jul 2007 09:24:09 -0000 Received: (qmail 15575 invoked by uid 22791); 4 Jul 2007 09:24:08 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 04 Jul 2007 09:24:04 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1I615d-0003xt-00; Wed, 04 Jul 2007 11:24:01 +0200 Date: Wed, 04 Jul 2007 09:24:00 -0000 From: Andrew Lunn To: wavecom wavecom Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20070704092400.GB24630@lunn.ch> Mail-Followup-To: wavecom wavecom , ecos-discuss@ecos.sourceware.org References: <126991.66855.qm@web60717.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <126991.66855.qm@web60717.mail.yahoo.com> User-Agent: Mutt/1.5.16 (2007-06-11) 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] AT91SAM7SEK and USB-SLAVE X-SW-Source: 2007-07/txt/msg00040.txt.bz2 On Tue, Jul 03, 2007 at 02:33:39PM -0700, wavecom wavecom wrote: > Hi, > > I'm trying to configure usb-slave with the AT91SAM7SEK > template. So I've enabled USB and ?Atmel AT91 USB > Device Driver? and ?Support the control endpoint 0?. > But in conflict list I've got that > CYGFUN_DEVS_USB_AT91_EP0 Requires CYGPKG_IO_USB > CYGPKG_IO_USB_SLAVE. So I 've found a patch: ? > http://www.mail-archive.com/ecos-patches@ecos.sourceware.org/msg00355.html > ?. I was trying to patch the usbs_at91.cdl, but in > my usbs_at91.cdl (# Date: 2006-02-25) is ? > default_value CYGINT_IO_USB_SLAVE_CLIENTS? just > like in + in the patch > ? > - calculated CYGINT_IO_USB_SLAVE_CLIENTS > + default_value CYGINT_IO_USB_SLAVE_CLIENTS > ? > How to solve the usb-slave problem? What it is trying to tell you is that there is no client software using the USB, so there is no need to compile the USB stack. So it does not compile it. You either need to include/write a package which uses the USB package and implements the CDL interface CYGINT_IO_USB_SLAVE_CLIENTS, or you need to set option CYGGLO_IO_USB_SLAVE_APPLICATION and you application code can the use the USB slave functions. 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