Commit Graph

54 Commits

Author SHA1 Message Date
82776aaca9 Update vendor_device.c fifo mutex config similar to cdc_device.c. 2024-01-31 10:48:15 +01:00
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
106084289d add define for vendor_flush() to write_flush() for backward compatible 2023-04-06 11:15:57 +07:00
1372d4e4d5 Remove trailing whitespace 2023-03-31 12:58:51 -05:00
1fb2a2f1bd Update vendor_device.c 2023-03-28 14:01:33 -05:00
876f49f6ad Update vendor_device.c 2023-03-28 14:00:23 -05:00
faaed198b4 Update vendor_device.h 2023-03-28 13:59:59 -05:00
3623ba1884 fix trailing space and new line
temporarily disable codespell
2023-03-17 16:12:49 +07:00
498989ee00 use tu_static instead of static _fuzz_thread 2023-02-22 16:23:40 +07:00
03ec49450d rename maros from FUZZ to _FUZZ, change TU_STATIC to static _fuzz_thread 2023-02-22 11:47:09 +07:00
18c3095346 fix: Change all static variables to thread when fuzzing 2023-01-20 15:45:31 -08:00
6522a8150e fix all device examples warnings 2022-06-27 13:48:47 +07:00
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
708f05668d add tusb_debug.h remove tusb_error.h
move debug utils to new header
2022-03-09 16:44:19 +07:00
4c6bb161e2 Merge pull request #1289 from kasjer/kasjer/vendor-update
vendor: Write improvements
2022-03-06 11:16:35 +07:00
31aa077cb0 rename TUSB_OPT_HOST_ENABLED to CFG_TUH_ENABLED 2022-02-25 18:35:21 +07:00
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
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
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
d9bda631d4 Merge pull request #1120 from hathach/enhance
house keeping update
2021-10-01 23:31:21 +07:00
fec2d15989 clean up vendor open 2021-10-01 23:00:09 +07:00
1d5bdf7d39 add same7x to board list 2021-09-29 16:29:15 +07:00
2f2fb3d8d9 clean up 2021-09-29 16:18:11 +07:00
3333703d25 Merge branch 'master' into zhangslice-master 2021-09-18 13:35:26 +07:00
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
8d97f0e81f Merge pull request #1041 from HiFiPhile/vdc
Fix vendor fifo deadlock, add tud_vendor_n_read_flush
2021-08-25 23:22:15 +07:00
6a16f6ccdd rename CFG_TUSB_HOST_DEVICE_MAX to CFG_TUH_DEVICE_MAX 2021-08-23 11:01:40 +07:00
4941cde175 Fix vendor fifo deadlock, add tud_vendor_n_read_flush 2021-08-22 13:26:50 +02:00
82618d2d5f fix build with mm32 board 2021-06-18 17:18:11 +07:00
6e2cf2a3ee clean up log 2021-06-02 00:10:35 +07:00
3fb80e76ce remove obsolete hcd_pipe_queue_xfer()/hcd_pipe_xfer() 2021-05-31 12:08:37 +07:00
9ad6fadf6a more include clean up 2021-05-27 18:34:07 +07:00
9736e54734 include clean up 2021-05-27 17:40:39 +07:00
05892a5a1e Merge branch 'master' of github.com:xmos-jmccarthy/tinyusb 2021-05-06 12:18:55 -04:00
5add664874 Remove n from tu_fifo_get_write_info() and fix bug in vendor class 2021-04-30 17:37:14 +02:00
de933c45bc Remove all remainings with peek_at 2021-04-30 14:56:14 +02:00
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
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
be708bb8a4 Merge branch 'master' into update-host 2020-09-01 12:02:25 +07:00
53b749fd72 check max_len for vendor and hid 2020-05-28 14:44:26 +07:00
10cd3f24bf initial transfer failed in open() shouldn't cause the driver open to fail. 2020-05-28 13:48:02 +07:00
c1db36a15c update vendor open() 2020-05-28 12:19:06 +07:00
58cedf4c06 usb0 host on mcb1800 work with fullspeed mode.
use usbh_edpt_open() to correctly map ep2drv[]
2020-05-19 00:55:43 +07:00
490771a094 test vendor 2020-04-15 10:39:01 +07:00
ff0e7d2bed implement multiple interfaces support 2019-12-28 14:27:32 -06:00
b7dbc98ab1 close #105 add tud_vendor_write_available() 2019-08-31 16:31:07 +07:00
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
00a9e492cd clean up 2019-07-30 00:48:31 +07:00
caf2b6d463 move tud_vendor_control_* to usbd.h 2019-07-24 23:12:31 +07:00
2a543c0e79 update vendor device similar to cdc read/write
maybe refactor later
2019-07-24 23:07:30 +07:00