98e85a296d
bulk_in: copy buffer to ensure alignment correctness.
2024-04-27 17:09:05 +02:00
9e674fa109
[usbtmc] cast to uintptr_t to get rid of const for usbd_edpt_xfer.
2024-03-15 15:02:13 +01:00
5ce7b14711
add notification support for device class USBTMC.
...
The ep_int_in is already used for responding to USB488
READ_STATUS_BYTE requests, but that EP is defined for all of USBTMC.
This extends the functionality to let callers send notifications and
receive ACKs.
2024-02-26 11:43:45 +01:00
1c9a839401
audio_device: Fix unused variable warning
...
In some configurations local variable p_desc_parse_for_params
is declared and never used resulting in warning that can
be escalated to build error (for mynewt)
Now variable is surrounded with same preprocessor condition
as function that uses it audiod_parse_for_AS_params()
2024-01-23 13:51:10 +01:00
769a237b19
accumulated review changes
2024-01-20 20:34:50 +01:00
87d509d416
make CFG_TUH_CDC_LINE_CODING_ON_ENUM optional for ch34x
2024-01-20 01:42:31 +07:00
55cb713264
- add new API tuh_cdc_set_data_format()
...
- add typedef for cdc enum
2024-01-19 16:56:32 +07:00
c196a2ed9c
move code around
2024-01-19 16:04:30 +07:00
98781bb903
- add ch34x_set_data_format()
...
- add ch34x_set_line_coding()
2024-01-19 15:58:05 +07:00
23c2d929a1
refactor process_internal_control_complete()
2024-01-19 12:40:37 +07:00
c568a6793e
- add requested line coding to make update data format easier
...
- change ch34x_xfer_get_itf_num() to simply 0
2024-01-19 12:14:45 +07:00
30eb35f17f
- revert the use of serial init for set line coding
...
- update ch34x_get_lcr and ch34x_get_factor_divisor
2024-01-19 01:06:24 +07:00
3968a0fff8
implemented ch34x_set_line_coding() and some code cleanup
2024-01-17 16:04:31 +01:00
f221c0fb66
more clean up
2024-01-17 14:45:09 +07:00
482a8068a5
change code style and code cleanup
2024-01-16 14:51:04 +01:00
46ac03ba85
change code style
2024-01-16 17:45:16 +07:00
55da1072b6
merge and cherry pick changes
2024-01-16 17:25:44 +07:00
07e3d5c691
fix number of endpoint for ch340x, also open notification even not used for now
2024-01-16 14:32:31 +07:00
f7ef3c1b1c
Merge branch 'cdc_ch34x_support' of https://github.com/IngHK/tinyusb into cdc_ch34x_support
2024-01-16 08:20:23 +01:00
4e6408ea49
CDCh host: further work on CH340/CH341 support
2024-01-16 08:07:22 +01:00
43e655b896
Merge remote-tracking branch 'remotes/hathach/master' into cdc_ch34x_support
2024-01-16 07:57:06 +01:00
e2aa671346
move open() ad vid_pid_list into serial driver struct
2024-01-16 12:54:39 +07:00
57c6f8cfa2
Merge branch 'master' into cdc_ch34x_support
...
# Conflicts:
# src/class/cdc/cdc_host.c
2024-01-16 12:00:28 +07:00
aa58cdcfa6
change CFG_TUH_CDC_FTDI/CP210X_PID_LIST to CFG_TUH_CDC_FTDI/CP210X_VID_PID_LIST which contains both vid and pid.
2024-01-16 01:28:29 +07:00
1f2901e8b1
fix conflict of BIT() macro
2024-01-15 19:02:02 +07:00
d192868d62
fix sign-conversion warning
2024-01-15 18:25:15 +07:00
d92eb38c21
change code style
2024-01-15 16:56:18 +07:00
a67ee4f01b
Merge branch 'master' into cdc_ch34x_support
2024-01-15 16:17:42 +07:00
c619a86141
bInterfaceClass number replaced by define
2024-01-11 08:53:47 +01:00
91f65a36bf
[CDC] host: moved acm_open to other acm prototypes
2024-01-09 09:53:54 +01:00
c2bbcc9f60
initial support of CH34x CDC device
2023-12-26 20:14:03 +01:00
9a7e23379c
Add configuration option CFG_TUH_CDC_FTDI_PID_LIST to tusb_option.h
2023-12-12 08:11:16 +01:00
4c80f5a192
Merge pull request #2296 from LarssonOliver/master
...
Allow external definition of TU_CP210X_PID_LIST
2023-12-11 15:13:20 +07:00
506617d4b3
Add comment to explain why the condition changes
2023-12-10 17:04:46 +01:00
ac418f4d25
Fix strict-overflow warning when compiling with gcc >= 12
2023-12-09 23:13:53 +01:00
c4e04d3db4
Add configuration option CFG_TUH_CDC_CP210X_PID_LIST to tusb_option.h
2023-11-25 08:34:52 +01:00
2fc9fbe27d
Merge pull request #2340 from hathach/hid-set-protocol-pr
...
Hid set protocol pr
2023-11-24 19:05:16 +07:00
f469250fa3
minor update
2023-11-24 18:35:00 +07:00
2fed722b00
add tuh_hid_set_default_protocol() to set default USB host HID protocol
2023-11-24 18:27:03 +07:00
6e5c7f4390
rename to CFG_TUD_BTH_HISTORICAL_COMPATIBLE, move CFG_TUD_BTH_ISO_ALT_COUNT to tusb_option.h and mandatory for BTH driver
2023-11-24 16:08:48 +07:00
5e54bd37b6
Merge branch 'master' into bth
2023-11-24 15:57:06 +07:00
aedc92f2d3
fix typo in cdc line coding enum
2023-11-22 11:25:55 +07:00
8bac68db84
Add historical EP compatibility to bth class
2023-11-07 17:38:26 +01:00
d3fa3cdf48
Adjsut blackout time.
2023-10-18 17:05:35 +02:00
ade8a19aef
Put sw_buf in USB section only if necessary.
2023-10-17 21:21:52 +02:00
e9d894fe66
Fix compile.
2023-10-17 21:03:29 +02:00
d83a210788
Add blackout time.
2023-10-17 15:18:05 +02:00
0a1d6cf4d0
Read sample rate directly from control transfer to eliminate callback.
2023-10-17 13:06:55 +02:00
656e1e416a
Add flow control for IN transfer.
2023-10-17 09:46:01 +02:00
8b2cb63da8
Fix naming nBytesPerSample.
2023-10-10 18:22:20 +02:00