Commit graph

60 commits

Author SHA1 Message Date
Kristian Sloth Lauszus
6c36eed239 Renamed USB class to USBHost, so it does not collide with the one defined in the Arduino Zero core
Also renamed the struct UsbDevice to UsbDeviceDefinition
2016-01-19 16:34:45 +01:00
Kristian Sloth Lauszus
fb723fcbb0 Don't set epAttribs to 0, as this will set bmNakPower to 0 as well. Instead set bmSndToggle and bmRcvToggle explicit to 0.
Fixes: #184
2015-11-18 00:11:33 +01:00
Kristian Sloth Lauszus
e7bb5fafb1 Add delay between multiple calls to dispatchpkt inside InTransfer
Fixes: #167
2015-07-12 19:17:12 +02:00
Kristian Sloth Lauszus
5efed1938a Fixed: "warning: value computed is not used [-Wunused-value]"
See: http://stackoverflow.com/questions/4347684/pointer-value-computed-is-not-used-in-c-function
2015-04-20 00:55:04 +02:00
Phillip Stevens
c61f9ce1c2 Update Usb.cpp
Typo in the InTransfer function relating to resolving toggle errors arising from hrTOGERR
2015-04-15 12:54:29 +10:00
Andrew J. Kroll
da03f22741 fix pointer screwup that has been around for ages. 2015-03-18 05:35:44 -04:00
Andrew J. Kroll
2412be1bd9 Janitorial tab removal 2015-03-12 18:10:04 -04:00
Andrew J. Kroll
d25f28109d all sources to LF 2015-02-22 13:18:45 -05:00
Kristian Lauszus
69fa08d141 Check DEVSUBCLASSOK as well when blindly attempt to configure 2014-09-10 00:21:01 -07:00
Andrew J. Kroll
a58c6db580 Check subclasses during enumeration 2014-08-04 08:46:40 -04:00
Andrew J. Kroll
f6244bbe59 bugfix 2014-05-24 00:31:26 -04:00
Andrew J. Kroll
d56ed57495 Fix 1 month rollover bug -- Lei Shi found this one in one place, I found the problem all over the library and patched them all. 2014-05-22 23:36:33 -04:00
Andrew J. Kroll
f1af9b08ec Janitorial, whitespace fixes. No new code. 2013-12-25 05:09:57 -05:00
Andrew J. Kroll
77efe42a71 Fix hidboot not allocating or checking properly on mouse.
Removal of duplicate code: Force all drivers to delay after setting address.
2013-12-18 22:02:51 -05:00
Andrew J. Kroll
5785115cdb Type fixes, new debug macro, debug bug fixes. 2013-12-18 15:18:28 -05:00
Andrew J. Kroll
95d133b919 Merge 2013-12-04 18:51:06 -05:00
Andrew J. Kroll
e18eb57752 fix all warnings for ARM, fix a few small bugs 2013-12-04 18:40:23 -05:00
Kristian Lauszus
a03df2519b Limit number of retries 2013-11-11 00:45:27 +01:00
Andrew J. Kroll
272180cf60 Merge branch 'xxxajk' of github.com:felis/USB_Host_Shield_2.0 into xxxajk 2013-10-08 14:25:32 -04:00
Andrew J. Kroll
a21edc6698 Speed up core task 2013-10-08 14:25:23 -04:00
Kristian Sloth Lauszus
81ed31e1fe Check for hrJERR after ConfigureDevice too 2013-10-08 19:05:08 +02:00
Kristian Sloth Lauszus
3b733fc962 Better way to retry when hrJERR is returned 2013-10-08 18:27:51 +02:00
Kristian Sloth Lauszus
6adc0843d5 More elegant way of doing: 7990c32ad6 2013-10-08 18:14:16 +02:00
Kristian Sloth Lauszus
7990c32ad6 Don't call init if an error is returned 2013-10-08 18:07:36 +02:00
Kristian Sloth Lauszus
47ff8e55c5 Retry if device returns hrJERR 2013-10-07 00:41:49 +02:00
Andrew J. Kroll
226b4b6658 Unwedge failed device on failed attempt. 2013-09-29 18:22:37 -04:00
Andrew J. Kroll
af2cf97b5e Fix headers 2013-09-23 16:08:31 -04:00
Oleg Mazurov
9e1ea2ac1b fixed Get Conf Descr and delay after SetAddr in hiduniversal 2013-09-10 16:10:34 -06:00
Oleg Mazurov
eefb971656 Merge branch 'xxxajk' 2013-08-09 15:44:24 -06:00
Andrew J. Kroll
b30c56a86e Control switch via GPX pin. 2013-08-08 20:21:05 -04:00
Kristian Sloth Lauszus
c0fde76241 Make sure it doesn't try to init a driver twice 2013-07-16 18:36:07 +02:00
Kristian Sloth Lauszus
42a2261fe8 Check error code before breaking 2013-07-15 19:33:15 +02:00
Oleg Mazurov
3dea5b880f fixed low speed direct attach 2013-07-08 12:46:32 -06:00
Oleg Mazurov
1c5db85af6 fixed directly connected low-speed device func. 2013-06-18 18:49:57 -06:00
Andrew J. Kroll
5812e0f5c4 Fix NPE when devConfig[X] is NULL, remove unused variable from on-chip RAM 2013-06-18 14:43:37 -04:00
Andrew J. Kroll
53b7f82d94 Fix hub code, fix enumeration. 2013-06-18 01:24:28 -04:00
Andrew J. Kroll
080a8e256d add reset on hub port 2013-06-17 15:02:37 -04:00
Oleg Mazurov
205bb2829a added to configure proposal 2013-05-15 10:54:33 -06:00
Andrew J. Kroll
387a4ab5f4 make more clear on the flow proposal. 2013-05-14 16:11:32 -04:00
Andrew J. Kroll
e81faeadd5 Add proposal, see line 566 Usb.cpp. Fix small bug in Usb.cpp 2013-05-14 11:41:12 -04:00
Andrew J. Kroll
1cc3036eac Now mass storage works. Evil plans may begin. 2013-05-13 20:54:12 -04:00
Andrew J. Kroll
1d771c1501 Support more quirks by slight plugin event change. 2013-04-20 14:06:48 -04:00
Andrew J. Kroll
904f2ff25a Clean up code formatting to industry standards. 2013-03-28 04:46:43 -04:00
Andrew J. Kroll
629594f957 Merge my debug changes.
Merge my format sanity changes.
Track everything.
2013-03-28 03:26:02 -04:00
Oleg Mazurov
89ff7d24ed added delays in Get Config 2012-05-08 14:38:04 -06:00
Oleg Mazurov
3d068a0637 HID joystick support and examples 2012-04-03 14:09:04 -06:00
Oleg Mazurov
702897bd5b acm bug fix 2012-02-29 12:37:16 -07:00
Oleg Mazurov
2c728cd7dd Arduino-1.0 compatibility added 2012-01-10 12:49:42 -07:00
Oleg Mazurov
7972c403b1 removed delay in SetAddress() 2012-01-06 11:14:40 -07:00
Oleg Mazurov
0244032d0d adk final 2011-07-06 19:48:43 -06:00