Commit Graph

138 Commits

Author SHA1 Message Date
hathach
00ba4e95ac cdch: de-configure when closing, rename configured to mounted 2024-01-30 10:59:12 +07:00
IngHK
82be2477e8 fixed #2437 2024-01-29 12:04:00 +01:00
IngHK
769a237b19 accumulated review changes 2024-01-20 20:34:50 +01:00
hathach
87d509d416 make CFG_TUH_CDC_LINE_CODING_ON_ENUM optional for ch34x 2024-01-20 01:42:31 +07:00
hathach
55cb713264 - add new API tuh_cdc_set_data_format()
- add typedef for cdc enum
2024-01-19 16:56:32 +07:00
hathach
c196a2ed9c move code around 2024-01-19 16:04:30 +07:00
hathach
98781bb903 - add ch34x_set_data_format()
- add ch34x_set_line_coding()
2024-01-19 15:58:05 +07:00
hathach
23c2d929a1 refactor process_internal_control_complete() 2024-01-19 12:40:37 +07:00
hathach
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
hathach
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
IngHK
3968a0fff8 implemented ch34x_set_line_coding() and some code cleanup 2024-01-17 16:04:31 +01:00
hathach
f221c0fb66 more clean up 2024-01-17 14:45:09 +07:00
IngHK
482a8068a5 change code style and code cleanup 2024-01-16 14:51:04 +01:00
hathach
46ac03ba85 change code style 2024-01-16 17:45:16 +07:00
hathach
55da1072b6 merge and cherry pick changes 2024-01-16 17:25:44 +07:00
hathach
07e3d5c691 fix number of endpoint for ch340x, also open notification even not used for now 2024-01-16 14:32:31 +07:00
IngHK
f7ef3c1b1c Merge branch 'cdc_ch34x_support' of https://github.com/IngHK/tinyusb into cdc_ch34x_support 2024-01-16 08:20:23 +01:00
IngHK
4e6408ea49 CDCh host: further work on CH340/CH341 support 2024-01-16 08:07:22 +01:00
IngHK
43e655b896 Merge remote-tracking branch 'remotes/hathach/master' into cdc_ch34x_support 2024-01-16 07:57:06 +01:00
hathach
e2aa671346 move open() ad vid_pid_list into serial driver struct 2024-01-16 12:54:39 +07:00
hathach
57c6f8cfa2 Merge branch 'master' into cdc_ch34x_support
# Conflicts:
#	src/class/cdc/cdc_host.c
2024-01-16 12:00:28 +07:00
hathach
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
hathach
1f2901e8b1 fix conflict of BIT() macro 2024-01-15 19:02:02 +07:00
hathach
d192868d62 fix sign-conversion warning 2024-01-15 18:25:15 +07:00
hathach
d92eb38c21 change code style 2024-01-15 16:56:18 +07:00
hathach
a67ee4f01b Merge branch 'master' into cdc_ch34x_support 2024-01-15 16:17:42 +07:00
IngHK
c619a86141 bInterfaceClass number replaced by define 2024-01-11 08:53:47 +01:00
IngHK
91f65a36bf [CDC] host: moved acm_open to other acm prototypes 2024-01-09 09:53:54 +01:00
IngHK
c2bbcc9f60 initial support of CH34x CDC device 2023-12-26 20:14:03 +01:00
Oliver Larsson
9a7e23379c Add configuration option CFG_TUH_CDC_FTDI_PID_LIST to tusb_option.h 2023-12-12 08:11:16 +01:00
Oliver Larsson
c4e04d3db4 Add configuration option CFG_TUH_CDC_CP210X_PID_LIST to tusb_option.h 2023-11-25 08:34:52 +01:00
hathach
1b33a31536 more minor clean up
- also rename usbh_classdriver.h to usbh_pvt.h to consitent with usbd
2023-08-15 22:54:07 +07:00
Ha Thach
1b04db2a77 Merge branch 'master' into master 2023-08-04 11:48:04 +07:00
hathach
979bf32266 default class driver log level to CFG_TUH/TUD_LOG_LEVEL allow application to selectively disable usbd/usbh or driver log 2023-08-02 15:34:18 +07:00
Lars Pötter
0693462eba made line ends consistent. 2023-07-02 09:02:24 +02:00
hathach
26d05d7fc9 fix issue with ftdi host driver with status bytes
add workflow_dispatch to all ci workflow
2023-05-25 16:53:32 +07:00
hathach
206d63e038 correct EHCI reporting failed xfer (instead of stalled) when device is unplugged 2023-05-16 11:09:21 +07:00
hathach
1763eede48 more update to host serial API 2023-04-28 22:14:14 +07:00
hathach
fb5fe3360f allow call tuh cdc with blocking (callback = NULL)
- tuh_cdc_set_control_line_state()
- tuh_cdc_set_baudrate()
- tuh_cdc_set_line_coding()
2023-04-28 21:50:54 +07:00
hathach
0a43a7b418 improve host serial drivers
- tuh_control_xfer() update xfer result to user_data if complete
callback = NULL (sync/blocking)
- refactor host serial driver for acm/ftdi/cp210x
2023-04-28 19:13:25 +07:00
hathach
190acc1fb0 add aligned(4) for cdc_line_coding_t 2023-04-28 11:12:03 +07:00
hathach
732686cc10 add tuh_cdc_set_baudrate() 2023-04-27 23:22:10 +07:00
hathach
ee58278ed2 add code to calculate divisor from baudrate for ftdi 2023-04-27 23:08:25 +07:00
hathach
8214f0f497 clean up 2023-04-27 17:40:08 +07:00
hathach
438387be8c more refactor 2023-04-27 17:32:56 +07:00
hathach
86f6fd17ed cp210x seems to work well 2023-04-27 17:09:21 +07:00
hathach
a32ef1cde1 more host serial refactor 2023-04-27 16:32:42 +07:00
hathach
9698a088db refactor acm function 2023-04-27 15:29:44 +07:00
hathach
85d9925d24 refactor ftdi driver 2023-04-27 15:20:04 +07:00
hathach
293a6222f8 rename ftdi_host to ftdi_sio 2023-04-27 11:08:42 +07:00