Commit Graph

48 Commits

Author SHA1 Message Date
Cynventria[CitRA]
cf94b3f5fc fix desc_end in vendord_open()
minor fix on calculation of desc_end in vendord_open( ) for descriptor prasing
2025-03-10 14:22:29 +08:00
hathach
8a5c118a66 TUD_EPBUF_TYPE_DEF usbtmc_device.c and vendor_device.c 2024-11-22 16:22:10 +07:00
HiFiPhile
53989a99f6 Fix vendor class reset. 2024-10-01 00:03:01 +07:00
hathach
3ab63fbc65 remove vendor ep_addr, use stream api instead 2024-09-10 18:27:22 +07:00
hathach
bbeae09259 update vendor device to use edpt stream which also support non-buffereed (no fifo) mode 2024-09-10 17:45:03 +07:00
hathach
867f17acea change vendor device to use edpt stream API 2024-09-10 10:44:22 +07:00
HiFiPhile
95cb319bde Merge branch 'master' into vendor_fifo 2024-08-02 11:52:35 +02:00
HiFiPhile
2b9e53772e Take updated change from cdc_device. 2024-05-09 16:28:25 +02:00
HiFiPhile
adc7a78fd6 Merge branch 'master' of github.com:HiFiPhile/tinyusb into vendor_fifo 2024-04-08 21:44:14 +02:00
hathach
c3c0648456 add class driver deinit 2024-04-08 22:07:56 +07:00
HiFiPhile
5c8b3d97f0 Use FIFO size as condition. 2024-03-03 20:11:20 +01:00
HiFiPhile
297290c16d Allow vendor class to be used without FIFO. 2024-02-01 13:11:56 +01:00
mamiral
82776aaca9 Update vendor_device.c fifo mutex config similar to cdc_device.c. 2024-01-31 10:48:15 +01:00
hathach
ef49b93532 rename CFG_TUSB_MEM_SECTION to CFG_TUD_MEM_SECTION in device stack
CFG_TUD_MEM_SECTION is default to CFG_TUSB_MEM_SECTION
2023-07-24 15:46:21 +07:00
epatstarkey
1fb2a2f1bd Update vendor_device.c 2023-03-28 14:01:33 -05:00
epatstarkey
876f49f6ad Update vendor_device.c 2023-03-28 14:00:23 -05:00
hathach
498989ee00 use tu_static instead of static _fuzz_thread 2023-02-22 16:23:40 +07:00
hathach
03ec49450d rename maros from FUZZ to _FUZZ, change TU_STATIC to static _fuzz_thread 2023-02-22 11:47:09 +07:00
Nathaniel Brough
18c3095346 fix: Change all static variables to thread when fuzzing 2023-01-20 15:45:31 -08:00
hathach
6522a8150e fix all device examples warnings 2022-06-27 13:48:47 +07:00
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