[ECOS] AT91SAM7SEK and USB-SLAVE
wavecom wavecom
wavecomw@yahoo.com
Tue Aug 21 08:15:00 GMT 2007
IÂve created test USB package (only package
directories and definition without any C-code).
testusb.cdl looks like below:
Â
cdl_package CYGPKG_TEST_USB {
display "Test USB"
description "Test USB"
implements CYGPKG_IO_USB
implements CYGPKG_IO_USB_SLAVE
implements CYGINT_IO_USB_SLAVE_CLIENTS
cdl_component CYGPKG_TEST_USB_DEVICES {
display "Test USB dev"
flavor bool
default_value 1
description "Test USB dev"
}
}
Â.
Next IÂve added the package to ecos.db and to my
project. But still, when IÂm trying to enable ÂSupport
the control endpoint 0Â, IÂve got conflict ÂÂ
requires
CYGPKG_IO_USB CYGPKG_IO_USB_SLAVEÂ.
To solve that, IÂve tried to add ÂUSB slave-side
support and ÂUSB Support but the configuration tool
rejected that, because of hardware property.
Do I need to add these two packages?
How to solve CYGPKG_IO_USB CYGPKG_IO_USB_SLAVE
problem?
IÂm used at91sam7sek template.
Pete
> 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
>
____________________________________________________________________________________
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list