-
Notifications
You must be signed in to change notification settings - Fork 1.2k
CHCh Upgrade: Improved FTDI and CP210x support, add PL2303 support, bugfixes #2488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+2,410
−1,246
Merged
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
b9c44ee
improved tusb_config.h comment
heikokue ab6b9e3
Merge remote-tracking branch 'remotes/hathach/master' into cdch_upgrade
heikokue 069c68a
sorted driver functions into Control Request, Driver API, Enumeration…
heikokue 47777a6
improved TU_LOGs
heikokue 829ea52
splitted cdch_internal_control_complete() into driver's _internal_con…
heikokue 2f50f5a
changed to use of p_cdc->requested_line_coding
heikokue 7dd435c
changed to use of p_cdc->requested_line_state
heikokue dcadf8c
created set_function_call()
heikokue ea86bbe
added continue enum after config fail
heikokue 22a12c7
improved ACM checks
heikokue 138567a
fixed #2448 CH34x ch34x_set_line_coding() callback bug
heikokue db511fb
fixed CFG_TUH_CDC_LINE_CONTROL_ON_ENUM handling. only set if defined.…
heikokue 0b5f85e
created set_line_coding_sequence() and void set_line_coding_stage1_co…
heikokue 7fef594
improved FTDI support
heikokue 4547737
improved CP210x support
heikokue aabee25
added PL2303 support
heikokue ea175a7
updated contribution, readme and some comments
heikokue 2b507db
small changes & code style
heikokue da93fcf
improved TU_LOGs
heikokue 46a861b
improved PL2303 TU_LOGs
heikokue af5e75c
Merge remote-tracking branch 'remotes/hathach/master' into cdch_upgrade
heikokue 7f7576f
Merge remote-tracking branch 'remotes/hathach/master' into cdch_upgrade
heikokue f97e312
FTDI fixed itf_num and some improvement
heikokue d3d61da
improved & fixed compiler warnings device descriptor handling
heikokue edf1320
removed expendable ACM check
heikokue 3cf9cb9
small PL2303 improvements
heikokue e7308e3
improved TU_LOGs
heikokue e6d27b6
fixed IAR compile error
heikokue dea27d2
added explicite (uint16_t) casts inside tu_htole16()
heikokue e055104
added use of cdc_line_control_state_t type in CDCh
heikokue a9cc07f
added line control function using cdc_line_control_state_t
heikokue ee92e58
added defines CFG_TUH_CDC_DTR_CONTROL_ON_ENUM & CFG_TUH_CDC_RTS_CONTR…
heikokue 2786a61
fixed FTDI set control line
heikokue cb69ed0
code style and clean up CDC serial header files
heikokue 1bbd658
Merge remote-tracking branch 'remotes/hathach/master' into work
heikokue e2a5630
Merge remote-tracking branch 'remotes/hathach/master' into cdch_upgrade
heikokue 5e67b92
fixed compile warnings
heikokue e07ee4a
CP210x removed baudrate check, fixed data bits check
heikokue a1b1c1f
foxed FTDI flow control config
heikokue e02a309
disable PL2303 flow control config
heikokue 68602e4
small change process config complete
heikokue 0c5e14c
updated doc
heikokue f00e698
Merge remote-tracking branch 'remotes/hathach/master' into cdch_upgrade
heikokue 4a44dd5
Merge branch 'master' into fork/IngHK/cdch_upgrade
hathach d4abf43
add common cdch_process_set_config() to safely complete set_config() …
hathach 506edc6
add get_itf_by_xfer() to better determine cdc interface from xfer com…
hathach 9503883
usbh: add new API tuh_descriptor_get_device_local()
hathach 2adb305
house keeping
hathach ec1a262
clean up pl2303 type data
hathach fa3ec44
revert CFG_TUH_CDC_DTR/RTS_CONTROL_ON_ENUM
hathach ce9140a
rename tuh_cdc_get_local_line_coding to tuh_cdc_get_line_coding_local
hathach 221b528
union ftdi/pl2303/acm data to save memory.
hathach 5c974ce
usbh make TU_API_SYNC() public, to implement sync() API, change retur…
hathach adf6cbf
cdch clean up and refactor, add explicit sync() API
hathach 900d0d9
refactor change signature of serial driver's process_set_config
hathach 470e12f
refactor, add cdch_internal_control_complete()
hathach 8b5d703
major refactor to generalize cdch serial driver
hathach f4d049e
update acm and pl2303 to match the rest of drivers
hathach 0194b84
use enum buf for process_set_config for ch34x and pl2303
hathach d863624
clean up
hathach File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the central flow code of tuh_cdc_set_control_line_state(), tuh_cdc_set_baudrate(), tuh_cdc_set_data_format() and tuh_cdc_set_line_coding() is identical and very tricky, it was outsourced to the common subfunction set_function_call(), which calls the regarding driver's function.
Here you see, why I moved (among other things) the requested line coding and line state into p_cdc->requested..., because it also simplifies the parameter transfer from Control Endpoint API to Driver API independent of the upper mentoined API functions