Commit Graph

28 Commits

Author SHA1 Message Date
hathach
8b9cf152a0 rhport argument in usbd_ API() is not used (always use the initialized port)
remove the usage of TUD_OPT_RHPORT in class driver
2022-06-02 16:51:17 +07:00
Ha Thach
4c6bb161e2 Merge pull request #1289 from kasjer/kasjer/vendor-update
vendor: Write improvements
2022-03-06 11:16:35 +07:00
hathach
d10326cb4e rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLED
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
2022-02-25 18:35:21 +07:00
Jerzy Kasenberg
4ca2215684 vendor: Add tx flush functionality
So far tud_vendor_n_write() always flushed data.
It requires to have whole vendor packed constructed
before in one buffer.

With this change data do get flushed when endpoint size
is filled on write, when there is no enough data to
fill endpoint data is not sent and subsequent calls to
write functions can add more bytes.

Vendor code needs to call tud_vendor_n_flush() when packet is
ready to be sent.
2022-01-19 15:08:12 +01:00
Jerzy Kasenberg
d069ea1421 vendor: Add tx callback
Other drivers already have notification about data sent.
It allows batter control in application on vendor
protocol level.
2022-01-19 14:06:00 +01:00
hathach
fec2d15989 clean up vendor open 2021-10-01 23:00:09 +07:00
hathach
1d5bdf7d39 add same7x to board list 2021-09-29 16:29:15 +07:00
hathach
2f2fb3d8d9 clean up 2021-09-29 16:18:11 +07:00
hathach
b474522245 make vendor driver more flexible
- skip additional custom descriptor between interface and endpoints
- can have up to 2 bulk endpoint ( 1 in & 1 out)
2021-09-14 21:30:38 +07:00
MasterPhi
4941cde175 Fix vendor fifo deadlock, add tud_vendor_n_read_flush 2021-08-22 13:26:50 +02:00
hathach
6e2cf2a3ee clean up log 2021-06-02 00:10:35 +07:00
hathach
9736e54734 include clean up 2021-05-27 17:40:39 +07:00
Jeremiah McCarthy
05892a5a1e Merge branch 'master' of github.com:xmos-jmccarthy/tinyusb 2021-05-06 12:18:55 -04:00
Reinhard Panhuber
de933c45bc Remove all remainings with peek_at 2021-04-30 14:56:14 +02:00
Jeremiah McCarthy
2e2dc7bdc5 Revise per initial comments
Returns the RT driver to the function state of previous iteration, which
did not support the will_detach.  Behavior should be fine without this
feature.  This removes much of the added bloat to track state, and
handle requests in the APP_DETACH state which is no longer required.

Removes the optional bloat added to the RT driver, such as responding to
GETSTATE requests.

Fixes the DFU Mode to extract the attr bits from the functional
descriptor when opened.

Fixes some incorrect bitwise if checks.

Also, updates some naming of functions to be consistent with the rest of
the library.
2021-04-07 17:05:04 -04:00
Reinhard Panhuber
7e56f46957 Extend FIFO mutex to use separate write and read mutexes.
Adjust all USB drivers using FIFO and mutexes.
2021-03-04 13:52:14 +01:00
hathach
53b749fd72 check max_len for vendor and hid 2020-05-28 14:44:26 +07:00
hathach
10cd3f24bf initial transfer failed in open() shouldn't cause the driver open to fail. 2020-05-28 13:48:02 +07:00
hathach
c1db36a15c update vendor open() 2020-05-28 12:19:06 +07:00
hathach
490771a094 test vendor 2020-04-15 10:39:01 +07:00
Peter Lawrence
ff0e7d2bed implement multiple interfaces support 2019-12-28 14:27:32 -06:00
hathach
b7dbc98ab1 close #105 add tud_vendor_write_available() 2019-08-31 16:31:07 +07: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
2a543c0e79 update vendor device similar to cdc read/write
maybe refactor later
2019-07-24 23:07:30 +07:00
hathach
8ba78ee012 adding vendor 2019-07-24 16:08:43 +07:00
hathach
33de35504a more house keeping 2019-07-19 20:20:13 +07:00
hathach
a3cb2dda9e rename custom/custom-_* to vendor/vendor_* 2019-07-19 16:37:28 +07:00