1 |
27 |
unneback |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# usbs.cdl
|
4 |
|
|
#
|
5 |
|
|
# USB slave-side support
|
6 |
|
|
#
|
7 |
|
|
# ====================================================================
|
8 |
|
|
#####ECOSGPLCOPYRIGHTBEGIN####
|
9 |
|
|
## -------------------------------------------
|
10 |
|
|
## This file is part of eCos, the Embedded Configurable Operating System.
|
11 |
|
|
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
|
12 |
|
|
##
|
13 |
|
|
## eCos is free software; you can redistribute it and/or modify it under
|
14 |
|
|
## the terms of the GNU General Public License as published by the Free
|
15 |
|
|
## Software Foundation; either version 2 or (at your option) any later version.
|
16 |
|
|
##
|
17 |
|
|
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
18 |
|
|
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
19 |
|
|
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
20 |
|
|
## for more details.
|
21 |
|
|
##
|
22 |
|
|
## You should have received a copy of the GNU General Public License along
|
23 |
|
|
## with eCos; if not, write to the Free Software Foundation, Inc.,
|
24 |
|
|
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
25 |
|
|
##
|
26 |
|
|
## As a special exception, if other files instantiate templates or use macros
|
27 |
|
|
## or inline functions from this file, or you compile this file and link it
|
28 |
|
|
## with other works to produce a work based on this file, this file does not
|
29 |
|
|
## by itself cause the resulting work to be covered by the GNU General Public
|
30 |
|
|
## License. However the source code for this file must still be made available
|
31 |
|
|
## in accordance with section (3) of the GNU General Public License.
|
32 |
|
|
##
|
33 |
|
|
## This exception does not invalidate any other reasons why a work based on
|
34 |
|
|
## this file might be covered by the GNU General Public License.
|
35 |
|
|
##
|
36 |
|
|
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
37 |
|
|
## at http://sources.redhat.com/ecos/ecos-license/
|
38 |
|
|
## -------------------------------------------
|
39 |
|
|
#####ECOSGPLCOPYRIGHTEND####
|
40 |
|
|
# ====================================================================
|
41 |
|
|
######DESCRIPTIONBEGIN####
|
42 |
|
|
#
|
43 |
|
|
# Author(s): bartv
|
44 |
|
|
# Original data: bartv
|
45 |
|
|
# Contributors:
|
46 |
|
|
# Date: 2000-10-04
|
47 |
|
|
#
|
48 |
|
|
#####DESCRIPTIONEND####
|
49 |
|
|
#
|
50 |
|
|
# ====================================================================
|
51 |
|
|
|
52 |
|
|
cdl_package CYGPKG_IO_USB_SLAVE {
|
53 |
|
|
display "USB slave-side support"
|
54 |
|
|
parent CYGPKG_IO_USB
|
55 |
|
|
include_dir "cyg/io/usb"
|
56 |
|
|
active_if CYGHWR_IO_USB_SLAVE
|
57 |
|
|
doc ref/io-usb-slave.html
|
58 |
|
|
|
59 |
|
|
compile usbs.c
|
60 |
|
|
|
61 |
|
|
cdl_interface CYGINT_IO_USB_SLAVE_CLIENTS {
|
62 |
|
|
display "Number of clients of USB devices"
|
63 |
|
|
description "
|
64 |
|
|
This counter keeps track of the number of clients of
|
65 |
|
|
USB devices, especially application-class packages such
|
66 |
|
|
as the USB-ethernet support. It can be used by USB
|
67 |
|
|
device drivers for default settings.
|
68 |
|
|
"
|
69 |
|
|
}
|
70 |
|
|
|
71 |
|
|
cdl_option CYGGLO_IO_USB_SLAVE_APPLICATION {
|
72 |
|
|
display "Application code uses USB devices"
|
73 |
|
|
default_value 0
|
74 |
|
|
implements CYGINT_IO_USB_SLAVE_CLIENTS
|
75 |
|
|
description "
|
76 |
|
|
If the USB devices are accessed by application code
|
77 |
|
|
rather than by other packages then enabling this
|
78 |
|
|
option will cause the USB device drivers to be enabled.
|
79 |
|
|
"
|
80 |
|
|
}
|
81 |
|
|
|
82 |
|
|
cdl_option CYGGLO_IO_USB_SLAVE_PROVIDE_DEVTAB_ENTRIES {
|
83 |
|
|
display "Provide devtab entries by default"
|
84 |
|
|
default_value CYGPKG_IO
|
85 |
|
|
requires CYGPKG_IO
|
86 |
|
|
description "
|
87 |
|
|
The USB slave-side endpoints can typically be accessed in two
|
88 |
|
|
different ways. There is support for the traditional way of
|
89 |
|
|
doing I/O with open/read/write calls, which involves the
|
90 |
|
|
use of devtab entries. It is also possible to use a
|
91 |
|
|
USB-specific API, defined largely in terms of asynchronous
|
92 |
|
|
operations and callbacks (the read/write implementation uses
|
93 |
|
|
these lower-level calls). If neither the application nor
|
94 |
|
|
any other USB-related packages require the higher-level
|
95 |
|
|
read/write calls then it is possible to save some memory
|
96 |
|
|
by eliminating the devtab entries.
|
97 |
|
|
"
|
98 |
|
|
}
|
99 |
|
|
|
100 |
|
|
cdl_interface CYGHWR_IO_USB_SLAVE_OUT_ENDPOINTS {
|
101 |
|
|
display "Number of available host->slave endpoints"
|
102 |
|
|
}
|
103 |
|
|
cdl_interface CYGHWR_IO_USB_SLAVE_IN_ENDPOINTS {
|
104 |
|
|
display "Number of available slave->host endpoints"
|
105 |
|
|
}
|
106 |
|
|
|
107 |
|
|
cdl_option CYGBLD_IO_USB_SLAVE_USBTEST {
|
108 |
|
|
display "Build the main USB test program"
|
109 |
|
|
doc ref/usbs-testing.html
|
110 |
|
|
description "
|
111 |
|
|
The USB slave-side software is supplied with host-side
|
112 |
|
|
and target-side software that allows a variety of testing
|
113 |
|
|
to be performed. The slave-side software is not built
|
114 |
|
|
by default since it can only operate in specific environments
|
115 |
|
|
and in conjunction with the host-side software. Enabling
|
116 |
|
|
this option causes the slave-side software to be added
|
117 |
|
|
to the list of test cases for the current configuration."
|
118 |
|
|
default_value 0
|
119 |
|
|
implements CYGINT_IO_USB_SLAVE_CLIENTS
|
120 |
|
|
requires { is_substr(CYGPKG_IO_USB_SLAVE_TESTS, " tests/usbtarget") }
|
121 |
|
|
|
122 |
|
|
requires CYGFUN_KERNEL_API_C CYGFUN_KERNEL_THREADS_TIMER !CYGINT_KNEREL_SCHEDULER_UNIQUE_PRIORITIES
|
123 |
|
|
requires CYGPKG_LIBC_STDIO CYGSEM_LIBC_STDIO_THREAD_SAFE_STREAMS
|
124 |
|
|
}
|
125 |
|
|
|
126 |
|
|
cdl_option CYGPKG_IO_USB_SLAVE_TESTS {
|
127 |
|
|
display "Kernel tests"
|
128 |
|
|
flavor data
|
129 |
|
|
no_define
|
130 |
|
|
default_value { "" }
|
131 |
|
|
description "This option specifies the set of tests to be
|
132 |
|
|
built for the USB slave package"
|
133 |
|
|
}
|
134 |
|
|
}
|