chiptool icon indicating copy to clipboard operation
chiptool copied to clipboard

Allow specifying path for the `common` module from the outside

Open bugadani opened this issue 1 year ago • 2 comments

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

bugadani avatar May 06 '24 16:05 bugadani

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.

Dirbaio avatar May 06 '24 16:05 Dirbaio

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.

bugadani avatar May 06 '24 17:05 bugadani