Closed duskmoon314 closed 2 years ago
This is not a bug and not a feature. We just decided to produce arrays when it is possible. You could add PR to change this behavior if you need, but under feature flag.
You can try to run svd2rust
with --const_generic
. It should create array proxy with can work in more complicated situations.
Hi.
In the svd file, I use dimElementGroup to describe a list of registers in this way:
The generated rust code is:
According to CMSIS-SVD 1.3.6, I believe we use
%s
to describe a list of registers and[%s]
to describe an array of registers.Is this a bug or a feature? I haven't found a description of this behavior in the document.