266 Commits

Author SHA1 Message Date
Sylvain Munaut
ec4ecfa817 Add support for DFU Runtime class for devices
This is really just a few descriptors and then answering to the
request from the host to reboot into DFU mode.

That latter part is delegated to the app since this is platform
specific.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-10-28 16:11:08 +01:00
hathach
204791b3e7 2nd attempt to fix #161 2019-10-01 22:19:04 +07:00
hathach
d27291f288 Merge branch 'master' into develop 2019-09-30 14:45:34 +07:00
hathach
6183dbd0ce add -Wextra for more warnings to example
non-stack warning (probably mcu driver) should be suppressed in the
board.mk
2019-09-27 00:15:43 +07:00
Nathan Conrad
6841b236e8 Remove _app from callback function names. 2019-09-25 12:47:05 -04:00
Nathan Conrad
3a87dd65d7 Change getting the capabilities structure to a callback instead of an extern struct. 2019-09-25 12:46:35 -04:00
Nathan Conrad
2d4352bfe9 Rename USBTMC functions. 2019-09-25 12:46:25 -04:00
Nathan Conrad
412a279073 I never understood why I need to write void as empty function arguments. 2019-09-24 13:54:45 -04:00
Nathan Conrad
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
Nathan Conrad
10105557dc Let application control interface latency... 2019-09-24 13:11:45 -04:00
Nathan Conrad
e61f2b7393 Retool stalling EP on xfer errors. 2019-09-22 09:55:28 -04:00
Nathan Conrad
fa5b5e4561 Lots of updates (especially error handling) 2019-09-21 21:46:46 -04:00
Nathan Conrad
ec3414ca3a Merge branch 'master' into usbtmc 2019-09-21 21:38:05 -04:00
Nathan Conrad
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 2281a514846402af68aa4c97fcd206611c0969a1.
2019-09-20 12:58:26 -04:00
Nathan Conrad
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 f241ff389f9494836cdc45e621726c0b69b8daed.
2019-09-20 12:27:41 -04:00
Nathan Conrad
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
Nathan Conrad
a8a65d6cea Use cached HID descriptor. 2019-09-20 08:46:17 -04:00
Nathan Conrad
02b468f56a (little typo fix) 2019-09-19 21:20:04 -04:00
Nathan Conrad
05164c5a27 Cache pointer to HID descriptor. 2019-09-19 21:04:51 -04:00
Nathan Conrad
2a7ca15e2c Rename functions to include tud_ and _cb 2019-09-19 20:43:49 -04:00
Nathan Conrad
f3d6d0127b Rename USBTMC_CFG_ENABLE_488, and fix build with it off. 2019-09-19 19:59:44 -04:00
Nathan Conrad
d742c3e15c s/USBTMC488/USB488/ ; fix types in bitfield 2019-09-19 19:56:00 -04:00
Nathan Conrad
7e0490bbf3 Move descriptors to usbd.h 2019-09-19 19:51:37 -04:00
Nathan Conrad
346443118f Add testcase for aborting bulk in with no data queued (and fix aborting bulk in) 2019-09-19 19:01:08 -04:00
Nathan Conrad
0548f97d33 Remove debug printf. 2019-09-19 18:59:57 -04:00
Nathan Conrad
d4b2dff7c4 Fix more TX bugs... and add variable response delay to the example project. 2019-09-19 00:00:27 -04:00
Nathan Conrad
9a726dc7ed More fixes, and a bit of SRQ. 2019-09-18 21:34:26 -04:00
Nathan Conrad
99d03fcaee small fixes 2019-09-18 19:30:44 -04:00
Nathan Conrad
eea71a8b3b usbtmc updates.... 2019-09-18 19:24:54 -04:00
Nathan Conrad
91cd247c97 changes 2 2019-09-17 13:29:39 -04:00
Nathan Conrad
45871001e6 Changes1... 2019-09-17 13:29:38 -04:00
Nathan Conrad
e234998c6c More proper handling of clear. 2019-09-17 13:29:38 -04:00
Nathan Conrad
c755aee7d0 Clear 2019-09-17 13:29:38 -04:00
Nathan Conrad
915f52730d Implement HID desc request. 2019-09-17 11:28:29 -04:00
Nathan Conrad
e53e9bd4f0 Simulate query delay; getting to a point where implementing clear/aborts makes
sense. Probably adding too many concurance issues; need to figure out
semaphores.
2019-09-14 21:26:43 -04:00
Nathan Conrad
64bfec79b2 Change requset type parameter back to uint8_t (fix type cast), support USB indicator pulse 2019-09-14 18:11:07 -04:00
Nathan Conrad
6e00886ffb Handle USBTMC TermChar. 2019-09-14 17:15:34 -04:00
Nathan Conrad
e74c6b0874 Combined status response enum (std with 488), support trigger. 2019-09-14 16:51:02 -04:00
Nathan Conrad
1cae96951f Add usbtmc class driver. 2019-09-14 13:35:08 -04:00
hathach
6c6a597465 fix #132 2019-09-11 10:47:07 +07:00
hathach
80cde5b0b5 fix potential bug with mis-align issue 2019-09-01 17:20:10 +07:00
hathach
aeea6754af rename lpc_usbd to lpc_ip3511 2019-09-01 16:44:40 +07:00
hathach
b7dbc98ab1 close #105 add tud_vendor_write_available() 2019-08-31 16:31:07 +07:00
Scott Shawcroft
00c440cb26
Merge pull request #99 from jepler/issue98-midi-program-change
midi_device: Send message classes C and D as 2 bytes
2019-08-15 23:34:42 -07:00
jepler
96d96a94b8 midi_device: Send message classes C and D as 2 bytes
.. sending these as two 1-byte messages with CIN of 0xF is
misinterpreted by OSes including Windows 10 and (reportedly)
Mac.

Testing performed: Ran the reproducer script, which sends Program
Change (0xCx) messages.  I did not check with Change Pressure (0xDx)
messages, but expect the same thing.

Closes: #98
2019-08-14 19:15:29 -05:00
hathach
bd08d0edc9 add vendor peek, change cdc peek signature, change cdc read_char() return from signed char to int32_t 2019-08-01 10:46:27 +07:00
hathach
00a9e492cd clean up 2019-07-30 00:48:31 +07:00
hathach
d2b60b6755 webusb work great with linux 2019-07-26 11:36:30 +07:00
hathach
caf2b6d463 move tud_vendor_control_* to usbd.h 2019-07-24 23:12:31 +07:00
hathach
2a543c0e79 update vendor device similar to cdc read/write
maybe refactor later
2019-07-24 23:07:30 +07:00