Commit Graph

991 Commits

Author SHA1 Message Date
15a02d04df fix incorrect rx buf in cdc 2022-12-22 21:35:55 +07:00
396716cc2c clean up 2022-12-22 20:26:32 +07:00
f33883c308 add tuh_cdc_get_local_line_coding() 2022-12-22 19:41:39 +07:00
14d45b580e correct host cdc enum 2022-12-22 19:17:09 +07:00
05c119ce97 cdc host, add set line coding API 2022-12-22 18:28:06 +07:00
11233e4d3e minor clean up 2022-12-22 11:43:57 +07:00
2d536123c8 finish moving edpt stream to tusb.c 2022-12-22 11:31:37 +07:00
e3c9d94500 fix stream read count computation 2022-12-22 11:16:39 +07:00
8323e4b79a moving edpt_stream API into common tusb.c 2022-12-22 08:52:01 +07:00
9e8ea44925 add tuh_cdc_write_clear, rename read_flush() to read_clear() 2022-12-21 17:49:50 +07:00
cd9008e5a9 add tuh_cdc_tx_complete_cb() callback 2022-12-21 13:05:45 +07:00
84a483f5ea add more host cdc API
tuh_cdc_write_available(), tuh_cdc_read_flush(), tuh_cdc_rx_cb()
callback
2022-12-21 12:47:00 +07:00
badb30a6c3 correct cdc host app 2022-12-21 12:25:13 +07:00
22b62f8712 add tu_edpt_stream_write_zlp_if_needed() 2022-12-21 12:07:12 +07:00
76021c7359 rename tud_edpt_stream_write_xfer 2022-12-21 11:49:28 +07:00
cb2af4c0bc minor debug log 2022-12-21 11:46:58 +07:00
37529c41da fix ci 2022-12-21 10:46:47 +07:00
854e5222ae finalizing cdc host, has a working read/write
TODO: first character seems not to get echoed. set control line state
seems to failed with LOG < 2
2022-12-21 00:26:46 +07:00
7004914d8c fix hid host incorrect edpt release if failed to transmit
add CDC_CONTROL_LINE_STATE_DTR/RTS, TUSB_INDEX_INVALID enum
2022-12-20 12:06:59 +07:00
fc9321ce26 correct cdc usbh_driver_set_config_complete() 2022-12-16 23:54:21 +07:00
4811b3463f stub 2022-12-16 17:08:37 +07:00
bd1f7f86ce add common EPSIZE for bulk/iso in full and highspeed
adding cdc host fifo tx/rx
2022-12-16 17:08:37 +07:00
f62f973956 minor rename 2022-12-16 17:08:37 +07:00
f0c51eae44 cdc check for bNumEndpoints before checking for endpoint descriptor 2022-12-16 17:08:37 +07:00
4f03695084 adding tuh_cdc_mount_cb/tuh_cdc_umount_cb
start adding cdc_app.c to example
2022-12-16 17:08:37 +07:00
96d2be905b fix build with usbtmc 2022-12-15 18:47:54 +07:00
88e6da7273 use OSAL_MUTEX_REQUIRED to replace CFG_FIFO_MUTEX/TUSB_OPT_MUTEX
add macro to swallow mutex API in order to simplify code with mutex
2022-12-15 18:03:01 +07:00
007ed1f0fe Added missing typecast to pass build checks 2022-12-08 14:50:34 +01:00
15ab35d9b8 usbtmc: correct packet size bug
Code was only reading the first 64 bytes of a 512 bytes packet.
2022-12-08 11:35:32 +01:00
19400c8556 fix typo, add -Wno-error=unreachable-code for fuzz due to latest cdc changes 2022-12-08 10:30:22 +07:00
603effbb77 cdc: Fix autoflush for FIFO < MPS 2022-12-06 07:49:26 +01:00
f03c28ec31 Merge pull request #1776 from hathach/hid-fido
Hid fido
2022-12-05 14:32:49 +07:00
d58120647a rename to match fido sample uf2_hid..h 2022-12-05 13:18:05 +07:00
43b255f413 more typos 2022-12-04 19:44:01 +07:00
6a2cf67289 Fix typos 2022-12-04 19:43:23 +07:00
7298923927 rework tuh_msc_complete_cb_t signature to use new tuh_msc_complete_data_t
add user arg to all scsi command API that support complete callback
2022-11-23 16:01:48 +07:00
64ecf43663 whitespace 2022-11-21 11:53:15 +07:00
28f49c088b Merge pull request #1698 from battlesnake/fix-attrs-on-struct-member
do not apply storage attributes to member of struct
2022-10-25 15:23:09 +07:00
815c2cc995 keep alignment spec 2022-10-24 20:36:45 +03:00
4ec1643bdb do not apply storage attributes to member of struct 2022-10-20 22:46:21 +03:00
e79325adec Merge pull request #1668 from kkitayam/add_support_for_mjpeg
Add support for MJPEG on UVC
2022-10-19 23:10:11 +07:00
3846d5f38c hid: add configurable report size for fido 2022-10-15 19:22:21 +08:00
2a520fb921 hid: add fido hid descriptor templates 2022-10-15 19:07:07 +08:00
53dc9d55b5 Fix pointer type to calculate streaming parameter 2022-10-12 20:41:03 +09:00
4be7ffd63f Fix max payload size to clip at 1023 2022-10-07 21:30:03 +09:00
ee832e4e37 Fix descriptor searching 2022-10-03 21:41:58 +09:00
6c3c2df823 audio_device: prototype added for function referenced before use 2022-09-17 21:27:04 +03:00
1debf62707 Fix compile errors 2022-09-13 21:22:02 +09:00
e80714740c Change images to MJPEG 2022-09-13 21:22:02 +09:00
c7469ce986 dfu: Allow DFU coexistence with other interfaces
dfu_moded_open() only works correct when its called on DFU interface
descriptor. It means that DFU is the only one interface in configuration
or driver is called after all others interface drivers were tried and
gave up.

If other interface is supported and but driver for DFU is called first
(this is the case for BTH and RNDIS).
Code after while loop (that was not entered) has an TU_ASSERT that will
make set_configuration to fail.

Now TU_VERIFY is called first to make sure open code is called for DFU
only and not other interface descriptors like in other drivers.
2022-08-09 10:42:30 +02:00