Commit Graph

175 Commits

Author SHA1 Message Date
IngHK
e02a309f1d disable PL2303 flow control config 2024-04-04 14:14:41 +02:00
IngHK
a1b1c1f552 foxed FTDI flow control config 2024-04-04 14:13:24 +02:00
IngHK
e07ee4a7b1 CP210x removed baudrate check, fixed data bits check 2024-04-04 14:12:14 +02:00
IngHK
5e67b92b8c fixed compile warnings 2024-04-04 14:10:31 +02:00
IngHK
e2a5630811 Merge remote-tracking branch 'remotes/hathach/master' into cdch_upgrade 2024-04-04 14:07:32 +02:00
hathach
e84c9f3e22 implement tuh_init()
change usbh driver init() return type from void to bool
2024-03-22 16:12:57 +07:00
hathach
74bd264758 adding deinit() stub for usbh/hcd class driver
add TUSB_VERSION_BUILD, also add TUSB_VERSION_NUMBER
2024-03-22 11:42:33 +07:00
IngHK
2786a61e8b fixed FTDI set control line 2024-03-10 08:21:11 +01:00
IngHK
ee92e582b3 added defines CFG_TUH_CDC_DTR_CONTROL_ON_ENUM & CFG_TUH_CDC_RTS_CONTROL_ON_ENUM 2024-03-10 08:20:30 +01:00
IngHK
a9cc07fc83 added line control function using cdc_line_control_state_t 2024-03-10 08:20:12 +01:00
IngHK
e0551043ca added use of cdc_line_control_state_t type in CDCh 2024-03-10 08:15:06 +01:00
IngHK
dea27d28bc added explicite (uint16_t) casts inside tu_htole16() 2024-03-10 08:14:00 +01:00
IngHK
e6d27b6d3e fixed IAR compile error 2024-03-10 08:13:22 +01:00
IngHK
e7308e313a improved TU_LOGs 2024-02-29 10:46:29 +01:00
IngHK
3cf9cb98e6 small PL2303 improvements 2024-02-29 10:46:29 +01:00
IngHK
edf1320391 removed expendable ACM check 2024-02-29 10:46:28 +01:00
IngHK
d3d61da038 improved & fixed compiler warnings device descriptor handling 2024-02-29 10:46:28 +01:00
IngHK
f97e31226a FTDI fixed itf_num and some improvement 2024-02-29 10:46:28 +01:00
IngHK
46a861b0e3 improved PL2303 TU_LOGs 2024-02-24 13:01:58 +01:00
IngHK
da93fcfc6d improved TU_LOGs 2024-02-24 13:01:58 +01:00
IngHK
2b507dba4d small changes & code style 2024-02-24 13:01:38 +01:00
IngHK
ea175a78aa updated contribution, readme and some comments 2024-02-24 13:00:46 +01:00
IngHK
aabee25e18 added PL2303 support 2024-02-24 12:58:59 +01:00
IngHK
4547737833 improved CP210x support 2024-02-24 12:58:59 +01:00
IngHK
7fef5943ef improved FTDI support 2024-02-24 12:58:45 +01:00
IngHK
0b5f85eee0 created set_line_coding_sequence() and void set_line_coding_stage1_complete() to be reused by FTDI & CP210x 2024-02-24 12:57:54 +01:00
IngHK
db511fb2f3 fixed CFG_TUH_CDC_LINE_CONTROL_ON_ENUM handling. only set if defined. value 0 is also valid 2024-02-24 12:57:54 +01:00
IngHK
138567af3e fixed #2448 CH34x ch34x_set_line_coding() callback bug 2024-02-24 12:57:54 +01:00
IngHK
22a12c7668 improved ACM checks 2024-02-24 12:57:54 +01:00
IngHK
ea86bbe5f7 added continue enum after config fail 2024-02-24 12:57:53 +01:00
IngHK
dcadf8c2a2 created set_function_call() 2024-02-24 12:57:53 +01:00
IngHK
7dd435cb87 changed to use of p_cdc->requested_line_state 2024-02-24 12:57:53 +01:00
IngHK
2f50f5a426 changed to use of p_cdc->requested_line_coding 2024-02-24 12:57:53 +01:00
IngHK
829ea52873 splitted cdch_internal_control_complete() into driver's _internal_control_complete() and moved them into driver's sections. no functional change 2024-02-24 12:57:39 +01:00
IngHK
47777a6305 improved TU_LOGs 2024-02-23 23:35:59 +01:00
IngHK
069c68ad04 sorted driver functions into Control Request, Driver API, Enumeration and Helper. no functional changes 2024-02-23 23:27:38 +01:00
IngHK
e63a2f5c58 fix #2444 and other small things 2024-01-31 18:00:25 +01:00
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