Commit Graph

656 Commits

Author SHA1 Message Date
4ccdc5522d Fix typo of CFG_TUD_ENDOINT0_SIZE. 2019-09-27 12:41:46 -04:00
6841b236e8 Remove _app from callback function names. 2019-09-25 12:47:05 -04:00
3a87dd65d7 Change getting the capabilities structure to a callback instead of an extern struct. 2019-09-25 12:46:35 -04:00
2d4352bfe9 Rename USBTMC functions. 2019-09-25 12:46:25 -04:00
412a279073 I never understood why I need to write void as empty function arguments. 2019-09-24 13:54:45 -04:00
624f4bf4ce Remove rhport from app code. If anything, it should be the interface_id. Assume a single interface, for now. 2019-09-24 13:42:29 -04:00
10105557dc Let application control interface latency... 2019-09-24 13:11:45 -04:00
e61f2b7393 Retool stalling EP on xfer errors. 2019-09-22 09:55:28 -04:00
757c2cdc5b Merge remote-tracking branch 'origin/master' into usbtmc 2019-09-22 09:30:45 -04:00
7ba8e81852 Merge pull request #177 from cr1901/fifo-fix
dcd_synopsys: Fix off-by-one error in FIFO allocation.
2019-09-22 11:38:54 +07:00
108f756e22 dcd_synopsys: Fix off-by-one error in FIFO allocation. 2019-09-21 23:01:06 -04:00
fa5b5e4561 Lots of updates (especially error handling) 2019-09-21 21:46:46 -04:00
2aa10daf26 Merge branch 'clear_feature_ordering' into usbtmc 2019-09-21 21:39:25 -04:00
ec3414ca3a Merge branch 'master' into usbtmc 2019-09-21 21:38:05 -04:00
9498adef71 Changing the bitwise to a logical OR created a huge hard to find bug. It shortcutted the call to the class function,
so, lets use shortcutting anyway?
2019-09-21 19:29:57 -04:00
fbb8520acd logical or. 2019-09-21 14:34:29 -04:00
37b52e354f Correct wording of comment on handling EP requests. 2019-09-21 12:17:17 -04:00
a187f0268c When unstalling, EP must be marked as not busy. Also, mark EP as busy when stalling as xfer requests should fail. 2019-09-21 12:05:57 -04:00
be28a05409 Make type casting explicit 2019-09-21 12:05:46 -04:00
55abb3d717 Calling EP open with bad parameters should be considered a bug. 2019-09-21 12:02:52 -04:00
aebecf169a Reorder handling of EP control requests, 2019-09-21 12:02:06 -04:00
b6590490a8 USB Control: Pointer arithmetic on void* is forbiden 2019-09-21 12:00:52 -04:00
ce9f133d25 FSDEV: go to NAK when unstalling; on reset, set EP0 to NAK, prioritize reset interrupt, fix small typos. 2019-09-21 12:00:04 -04:00
f90f1a278b Merge pull request #169 from pigrew/hid_desc
Implement HID desc request.
2019-09-21 00:06:51 +07:00
8a688cd8d0 Revert "Revert "Also need to just return false in the case that it isn't an interface control event. We shouldn't assert. This normally isn't an""
This reverts commit 2281a51484.
2019-09-20 12:58:26 -04:00
2281a51484 Revert "Also need to just return false in the case that it isn't an interface control event. We shouldn't assert. This normally isn't an"
This reverts commit f241ff389f.
2019-09-20 12:27:41 -04:00
f241ff389f Also need to just return false in the case that it isn't an interface control event. We shouldn't assert. This normally isn't an
error, either, so I don't want to use TU_VERIFY.
2019-09-20 08:56:46 -04:00
a8a65d6cea Use cached HID descriptor. 2019-09-20 08:46:17 -04:00
345806a533 Merge remote-tracking branch 'origin/master' into usbtmc 2019-09-20 08:42:20 -04:00
94c9cf0eff doc update 2019-09-20 16:14:35 +07:00
7b2f8cc73a added stm32 L0 support
close #125
2019-09-20 13:49:33 +07:00
02b468f56a (little typo fix) 2019-09-19 21:20:04 -04:00
05164c5a27 Cache pointer to HID descriptor. 2019-09-19 21:04:51 -04:00
2a7ca15e2c Rename functions to include tud_ and _cb 2019-09-19 20:43:49 -04:00
f3d6d0127b Rename USBTMC_CFG_ENABLE_488, and fix build with it off. 2019-09-19 19:59:44 -04:00
d742c3e15c s/USBTMC488/USB488/ ; fix types in bitfield 2019-09-19 19:56:00 -04:00
7e0490bbf3 Move descriptors to usbd.h 2019-09-19 19:51:37 -04:00
346443118f Add testcase for aborting bulk in with no data queued (and fix aborting bulk in) 2019-09-19 19:01:08 -04:00
0548f97d33 Remove debug printf. 2019-09-19 18:59:57 -04:00
525b4cdb72 Use ESOF for wakeup timing. 2019-09-19 09:51:40 -04:00
642afeea8b s/static const/define/ 2019-09-19 09:30:16 -04:00
85623584f9 Remove debug assertions. 2019-09-19 09:24:52 -04:00
5fcc1468eb Merge branch 'master' into fsdev_smallPacket 2019-09-19 09:16:48 -04:00
d4b2dff7c4 Fix more TX bugs... and add variable response delay to the example project. 2019-09-19 00:00:27 -04:00
9a726dc7ed More fixes, and a bit of SRQ. 2019-09-18 21:34:26 -04:00
99d03fcaee small fixes 2019-09-18 19:30:44 -04:00
eea71a8b3b usbtmc updates.... 2019-09-18 19:24:54 -04:00
6dd2296cfc Change inline functions to macros, and make all parameter names uniform. 2019-09-17 13:29:42 -04:00
237c32b976 fix #143 2019-09-17 13:29:42 -04:00
5a2e510af7 Interpretation of assert vs verify. 2019-09-17 13:29:41 -04:00