You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
114: feat: `convert`: Add `format_config` option r=adamgreig a=duskmoon314
## Intro
We can use `svdtools convert <input.svd> <output.svd> --format-config <format_config.yaml/json>` to format an SVD file now.
For example, we have `.svdfmt.yaml` with the below lines:
```YAML
peripheral_name: Constant
peripheral_base_address: UpperHex16
```
The output SVD file will have peripheral names in `CONSTANT_CASE` and addresses like `0x00ABCDEF` or `0x0123456789ABCDEF`.
The available config is in [`svd-encoder`](https://github.com/rust-embedded/svd/blob/master/svd-encoder/src/config.rs)
Only support SVD output via `svd-encoder` for now.
Co-authored-by: Campbell He <[email protected]>
0 commit comments