as3525v2-usb: fix bug in ep listing macro, rewrite EP0 handling using a state
commit15cadff134678bef0259405a0803f988a3f4f251
authorpamaury <pamaury@a1c6a512-1295-4272-9138-f99709370657>
Tue, 29 Jun 2010 18:58:09 +0000 (29 18:58 +0000)
committerpamaury <pamaury@a1c6a512-1295-4272-9138-f99709370657>
Tue, 29 Jun 2010 18:58:09 +0000 (29 18:58 +0000)
tree5b25190bef723b74127ac516dbbf144fbf12e1c1
parent7a772ca144abcec40f76880a28cf294b1209c63a
as3525v2-usb: fix bug in ep listing macro, rewrite EP0 handling using a state

There was a stupid bug in endpoint listing which caused random cancelling of EP0 transfers. The new scheme to handle EP0 transfers should avoid an unexpected setup packet which might cause a deadlock or confuse the core.
There is still an issue with the cancel_transfers function is still.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27178 a1c6a512-1295-4272-9138-f99709370657
firmware/target/arm/as3525/usb-drv-as3525v2.c