annotate packages/devs/usb/at91/current/ChangeLog @ 2974:1a427c29fd0f

* src/usbs_at91.c : Complete support for halting endpoints * cdl/usbs_at91.cdl : Add option CYGSEM_DEVS_USB_AT91_ZERO_LENGTH_PACKET_TERMINATION. When data transfer length is known from both side, sending an empty packet at the end of the transfer is not required. Add devtab entry for endpoints 4 to 7.
author jld
date Fri, 12 Nov 2010 12:14:31 +0000
parents 74dbf4c3f2e1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2974
1a427c29fd0f * src/usbs_at91.c : Complete support for halting endpoints
jld
parents: 2729
diff changeset
1 2010-11-12 Christophe Coutand <ecos@hotmail.co.uk>
1a427c29fd0f * src/usbs_at91.c : Complete support for halting endpoints
jld
parents: 2729
diff changeset
2
1a427c29fd0f * src/usbs_at91.c : Complete support for halting endpoints
jld
parents: 2729
diff changeset
3 * src/usbs_at91.c : Complete support for halting endpoints
1a427c29fd0f * src/usbs_at91.c : Complete support for halting endpoints
jld
parents: 2729
diff changeset
4 * cdl/usbs_at91.cdl : Add option
1a427c29fd0f * src/usbs_at91.c : Complete support for halting endpoints
jld
parents: 2729
diff changeset
5 CYGSEM_DEVS_USB_AT91_ZERO_LENGTH_PACKET_TERMINATION. When data
1a427c29fd0f * src/usbs_at91.c : Complete support for halting endpoints
jld
parents: 2729
diff changeset
6 transfer length is known from both side, sending an empty packet
1a427c29fd0f * src/usbs_at91.c : Complete support for halting endpoints
jld
parents: 2729
diff changeset
7 at the end of the transfer is not required.
1a427c29fd0f * src/usbs_at91.c : Complete support for halting endpoints
jld
parents: 2729
diff changeset
8 Add devtab entry for endpoints 4 to 7.
1a427c29fd0f * src/usbs_at91.c : Complete support for halting endpoints
jld
parents: 2729
diff changeset
9
2625
e38c98808295 * src/usbs_at91.c (usbs_at91_set_pullup): Fix typo introduced by
asl
parents: 2578
diff changeset
10 2008-11-17 Gabor Toeroek <tgabor84@gmail.com>
e38c98808295 * src/usbs_at91.c (usbs_at91_set_pullup): Fix typo introduced by
asl
parents: 2578
diff changeset
11
e38c98808295 * src/usbs_at91.c (usbs_at91_set_pullup): Fix typo introduced by
asl
parents: 2578
diff changeset
12 * src/usbs_at91.c (usbs_at91_set_pullup): Fix typo introduced by
e38c98808295 * src/usbs_at91.c (usbs_at91_set_pullup): Fix typo introduced by
asl
parents: 2578
diff changeset
13 Andrew Lunn in the last patch.
e38c98808295 * src/usbs_at91.c (usbs_at91_set_pullup): Fix typo introduced by
asl
parents: 2578
diff changeset
14
2578
96280a58fefb * cdl/usbs_at91.cdl:
asl
parents: 2450
diff changeset
15 2008-11-03 Gabor Toeroek <tgabor84@gmail.com>
96280a58fefb * cdl/usbs_at91.cdl:
asl
parents: 2450
diff changeset
16
96280a58fefb * cdl/usbs_at91.cdl:
asl
parents: 2450
diff changeset
17 * cdl/usbs_at91.cdl:
96280a58fefb * cdl/usbs_at91.cdl:
asl
parents: 2450
diff changeset
18 * include/usbs_at91.h:
96280a58fefb * cdl/usbs_at91.cdl:
asl
parents: 2450
diff changeset
19 * src/usbs_at91.c:
96280a58fefb * cdl/usbs_at91.cdl:
asl
parents: 2450
diff changeset
20 * src/usbs_at91_data.c: Support for SAM7SE which has an internal
96280a58fefb * cdl/usbs_at91.cdl:
asl
parents: 2450
diff changeset
21 pullup. Added extra endpoints for those chips that have them.
96280a58fefb * cdl/usbs_at91.cdl:
asl
parents: 2450
diff changeset
22
2450
0f68ebea87e6 * cdl/usbs_at91.cdl: Fixed typos in
asl
parents: 2291
diff changeset
23 2007-11-20 Andrew Lunn <andrew.lunn@ascom.ch>
0f68ebea87e6 * cdl/usbs_at91.cdl: Fixed typos in
asl
parents: 2291
diff changeset
24
0f68ebea87e6 * cdl/usbs_at91.cdl: Fixed typos in
asl
parents: 2291
diff changeset
25 * cdl/usbs_at91.cdl: Fixed typos in
0f68ebea87e6 * cdl/usbs_at91.cdl: Fixed typos in
asl
parents: 2291
diff changeset
26 CYGNUM_DEVS_USB_AT91_GPIO_PULLUP_INVERTED and
0f68ebea87e6 * cdl/usbs_at91.cdl: Fixed typos in
asl
parents: 2291
diff changeset
27 CYGNUM_DEVS_USB_AT91_GPIO_READ_POWER_INVERTED. Fixing the typo.
0f68ebea87e6 * cdl/usbs_at91.cdl: Fixed typos in
asl
parents: 2291
diff changeset
28
0f68ebea87e6 * cdl/usbs_at91.cdl: Fixed typos in
asl
parents: 2291
diff changeset
29 * src/usbs_at91.c (usbs_at91_set_pullup): Change the logic so that
0f68ebea87e6 * cdl/usbs_at91.cdl: Fixed typos in
asl
parents: 2291
diff changeset
30 CYGNUM_DEVS_USB_AT91_GPIO_PULLUP_INVERTED does actually cause an
0f68ebea87e6 * cdl/usbs_at91.cdl: Fixed typos in
asl
parents: 2291
diff changeset
31 invert when set true.
0f68ebea87e6 * cdl/usbs_at91.cdl: Fixed typos in
asl
parents: 2291
diff changeset
32
2291
dcfe5eba9ea7 * cdl/usbs_at91.c: Read actual EP addresses from the EP configuartion
jlarmour
parents: 2225
diff changeset
33 2006-09-07 John Eigelaar <jeigelaar@mweb.co.za>
dcfe5eba9ea7 * cdl/usbs_at91.c: Read actual EP addresses from the EP configuartion
jlarmour
parents: 2225
diff changeset
34
dcfe5eba9ea7 * cdl/usbs_at91.c: Read actual EP addresses from the EP configuartion
jlarmour
parents: 2225
diff changeset
35 * cdl/usbs_at91.c: Read actual EP addresses from the EP configuartion
dcfe5eba9ea7 * cdl/usbs_at91.c: Read actual EP addresses from the EP configuartion
jlarmour
parents: 2225
diff changeset
36 rather than relying on the order in the configuration list.
dcfe5eba9ea7 * cdl/usbs_at91.c: Read actual EP addresses from the EP configuartion
jlarmour
parents: 2225
diff changeset
37
2225
26500399b500 * cdl/usbs_at91.cdl: Allow EP0 to be enabled when there are no
asl
parents: 2223
diff changeset
38 2006-06-06 Andrew Lunn <andrew.lunn@ascom.ch>
26500399b500 * cdl/usbs_at91.cdl: Allow EP0 to be enabled when there are no
asl
parents: 2223
diff changeset
39
26500399b500 * cdl/usbs_at91.cdl: Allow EP0 to be enabled when there are no
asl
parents: 2223
diff changeset
40 * cdl/usbs_at91.cdl: Allow EP0 to be enabled when there are no
26500399b500 * cdl/usbs_at91.cdl: Allow EP0 to be enabled when there are no
asl
parents: 2223
diff changeset
41 slave clients.
26500399b500 * cdl/usbs_at91.cdl: Allow EP0 to be enabled when there are no
asl
parents: 2223
diff changeset
42
2223
41234426f916 * src/usbs_at91_data.cxx: Change the initialization priority. The
asl
parents: 2184
diff changeset
43 2006-05-25 Andrew Lunn <andrew.lunn@ascom.ch>
41234426f916 * src/usbs_at91_data.cxx: Change the initialization priority. The
asl
parents: 2184
diff changeset
44
41234426f916 * src/usbs_at91_data.cxx: Change the initialization priority. The
asl
parents: 2184
diff changeset
45 * src/usbs_at91_data.cxx: Change the initialization priority. The
41234426f916 * src/usbs_at91_data.cxx: Change the initialization priority. The
asl
parents: 2184
diff changeset
46 USB tty driver is initialized at priority CYG_INIT_IO, so the USB
41234426f916 * src/usbs_at91_data.cxx: Change the initialization priority. The
asl
parents: 2184
diff changeset
47 device has to be initialized before that.
41234426f916 * src/usbs_at91_data.cxx: Change the initialization priority. The
asl
parents: 2184
diff changeset
48
41234426f916 * src/usbs_at91_data.cxx: Change the initialization priority. The
asl
parents: 2184
diff changeset
49 2006-05-19 Andrew Lunn <andrew.lunn@ascom.ch>
41234426f916 * src/usbs_at91_data.cxx: Change the initialization priority. The
asl
parents: 2184
diff changeset
50
41234426f916 * src/usbs_at91_data.cxx: Change the initialization priority. The
asl
parents: 2184
diff changeset
51 * src/usbs_at91.c: Rework pullup and power dectect to use the AT91
41234426f916 * src/usbs_at91_data.cxx: Change the initialization priority. The
asl
parents: 2184
diff changeset
52 GPIO macros.
41234426f916 * src/usbs_at91_data.cxx: Change the initialization priority. The
asl
parents: 2184
diff changeset
53
2184
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
54 2006-05-07 Andrew Lunn <andrew.lunn@ascom.ch>
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
55
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
56 * Included into eCos anonymous CVS.
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
57
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
58 Note: There appears to be a hardware bug with OUT transfers. It
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
59 appears that after resetting the endpoint, the first OUT transfer
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
60 does not trigger a receive interrupt. The BK0 bit is not set,
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
61 however the number of bytes in the receiver FIFO is correct. The
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
62 second OUT transfer causes both BK0 and BK1 bits to be set and an
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
63 interrupt generated. Currently no workaround is used to correct
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
64 this behavoiour.
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
65
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
66 2006-04-23 Andrew Lunn <andrew.lunn@ascom.ch>
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
67
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
68 * src/usbs_at91.c: Endpoint 3 can send upto 64 bytes at a time,
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
69 not 8.
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
70
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
71 2006-04-20 Andrew Lunn <andrew.lunn@ascom.ch>
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
72
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
73 * src/usbs_at91.c (usbs_at91_control_data_sent): Send a zero byte
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
74 packet when the transfer is an exact multiple of the endpoint
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
75 buffer size.
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
76
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
77 2006-04-16 Andrew Lunn <andrew.lunn@ascom.ch>
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
78
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
79 * src/usbs_at91.c (usbs_testing_endpoints): Added support for the
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
80 USB testcase framework by exporting what endpoint we have.
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
81 * src/usbs_at91.c (usbs_at91_control_setup): Make requests other
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
82 than standard requests work, eg CLASS, VENDOR etc.
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
83 * src/usbs_at91.c (usbs_at91_handle_reset): Configure the endpoint
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
84 hardware using the configuration information.
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
85 * src/usbs_at91.c (usbs_at91_control_data_sent): Transaction is
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
86 complete when the buffer is empty _and_ there is no refill
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
87 function defined.
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
88
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
89 2006-03-10 Oliver Munz <oli@snr.ch>
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
90
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
91 * CDL-Update for PLL-Freuenzy.
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
92
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
93 2006-03-06 Oliver Munz <oli@snr.ch>
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
94
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
95 * USB device driver work finished - haha.
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
96
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
97 What's missing:
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
98 The set_... and get_freature-host-commands are not implemented yet.
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
99 The dynamical configuration of the data-endpoints is not reflectet in
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
100 the "usbs.h" API.
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
101 Isochronus transfer is not implemented.
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
102 Polling routines are not implemented.
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
103 USB-Tests are not done.
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
104 The PowerDetectPin is not used for the state.
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
105 AT91SAM7X's are not supported at the moment.
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
106
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
107 But it works for me...
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
108
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
109 //===========================================================================
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2625
diff changeset
110 // ####GPLCOPYRIGHTBEGIN####
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2625
diff changeset
111 // -------------------------------------------
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2625
diff changeset
112 // This file is part of eCos, the Embedded Configurable Operating System.
2974
1a427c29fd0f * src/usbs_at91.c : Complete support for halting endpoints
jld
parents: 2729
diff changeset
113 // Copyright (C) 1998, 1999, 2000, 2001, 2002, 2010 Free Software Foundation, Inc.
2184
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
114 //
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2625
diff changeset
115 // This program is free software; you can redistribute it and/or modify
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2625
diff changeset
116 // it under the terms of the GNU General Public License as published by
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2625
diff changeset
117 // the Free Software Foundation; either version 2 or (at your option) any
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2625
diff changeset
118 // later version.
2184
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
119 //
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2625
diff changeset
120 // This program is distributed in the hope that it will be useful, but
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2625
diff changeset
121 // WITHOUT ANY WARRANTY; without even the implied warranty of
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2625
diff changeset
122 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2625
diff changeset
123 // General Public License for more details.
2184
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
124 //
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2625
diff changeset
125 // You should have received a copy of the GNU General Public License
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2625
diff changeset
126 // along with this program; if not, write to the
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2625
diff changeset
127 // Free Software Foundation, Inc., 51 Franklin Street,
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2625
diff changeset
128 // Fifth Floor, Boston, MA 02110-1301, USA.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2625
diff changeset
129 // -------------------------------------------
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2625
diff changeset
130 // ####GPLCOPYRIGHTEND####
2184
54308c2d9651 AT91 USB device driver by Oliver Munz and Andrew Lunn.
asl
parents:
diff changeset
131 //===========================================================================