-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
CHCh Upgrade: Improved FTDI and CP210x support, add PL2303 support, bugfixes #2488
Open
IngHK
wants to merge
43
commits into
hathach:master
Choose a base branch
from
IngHK:cdch_upgrade
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
43 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 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 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.
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