Skip to content

Conversation

duskmoon314
Copy link
Contributor

New feature

Add a keep_list arg to allow not to generate arrays.

svd2rust --help
# --keep_list        Keep lists when generating code of dimElement, instead of trying to generate arrays

svd2rust --target riscv --keep_list -i soc.svd

Use [%s] to create arrays and use %s to create lists

ref: https://www.keil.com/pack/doc/CMSIS/SVD/html/elem_special.html

Motivation

Issue #561

Might be useful if someone needs lists.

@duskmoon314 duskmoon314 requested a review from a team as a code owner January 11, 2022 07:55
@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ryankurte (or someone else) soon.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-tools labels Jan 11, 2022
@burrbull
Copy link
Member

Need to check how it interact with #354 when --const_generic is enabled and complex dim indexes are present.

@burrbull
Copy link
Member

burrbull commented Jan 17, 2022

Rebase, please. And rustfmt

@duskmoon314
Copy link
Contributor Author

Rebase, please. And rustfmt

rebase and fmt done

@burrbull
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented Jan 17, 2022

Build succeeded:

@bors bors bot merged commit 0532305 into rust-embedded:master Jan 17, 2022
@duskmoon314 duskmoon314 deleted the keep-list branch June 10, 2022 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants