Skip to content

Conversation

bugadani
Copy link
Contributor

@bugadani bugadani commented May 6, 2024

This enables chiptool generate --svd atsaml10d14a.svd --common-module super::common and same for gen-block

@bugadani bugadani changed the title Allow specifying common module from the outside Allow specifying path for the common module from the outside May 6, 2024
@Dirbaio
Copy link
Member

Dirbaio commented May 6, 2024

passing super::common won't work in the general case when you generate things at multiple depths in the module tree. To do it right you'd have to go through relative_path somehow.

@bugadani
Copy link
Contributor Author

bugadani commented May 6, 2024

umm that sounds way too much a hassle for this, I guess my example should have been crate::pac::common :)

The hard part is that my use case that I wanted to support here is essentially to cut-and-paste parts of the result into my project, so the module which references common doesn't have a predefined path in chiptool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants