Repository navigation
Conversation
An item of USB.<instance>.cdc may set interface; it becomes the control and data interface names of the CDCUart, so a host can tell CDCs with the same VID:PID apart. Items without it generate the same code as before.
Member
Author
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
An item of
USB.<instance>.cdcinlibxr_config.yamlmay setinterface. It becomes the control and data interface name of thatCDCUart, so a host can tell apart CDCs that share VID:PID.What changes
_check_cdc:interfaceis optional and must be a string; it gets no default.USB::CDCUarttakes the name twice (control_interface_string,data_interface_string); double quotes in the name are escaped.interfacegenerate the same code as before (LibXR defaultsXRUSB CDC Control/XRUSB CDC Data).interfacekey with an example.The two constructor arguments exist in
CDCUarton LibXR master (V2.0.0) and dev.Verification
python -m unittest discover -s tests -p "test_*.py": 507 tests OK (6 skipped), including the new cases intests/test_generator_code_stm32.py;ruff checkandruff format --checkclean.