svd2rust icon indicating copy to clipboard operation
svd2rust copied to clipboard

registers_with_uniq_names

Open astro opened this issue 7 years ago • 5 comments

Here is a proposal to solve one more issue I found in the LPC13xx .svd file: registers with duplicate names.

This PR does not simply drop the duplicate identifiers but tries to rename them by appending 2, or 3, and so on.

astro avatar May 11 '18 15:05 astro

I had to add more remedies to get valid code generated from this .svd file. Suggestions for improving this PR are welcome!

astro avatar May 11 '18 22:05 astro

Adding _x to a register seems to me to be a sub-optimal solution. What registers have duplicate names? Could this be solved with <alternateGroup> (which has not been implemented as of v0.13.1)

Emilgardis avatar May 22 '18 19:05 Emilgardis

Ping from triage: @astro are you still looking for improvement idea ?

mathk avatar Feb 22 '19 09:02 mathk

@mathk That would be helpful.

astro avatar Feb 27 '19 18:02 astro

If this is still actual, please rebase.

burrbull avatar Apr 17 '21 04:04 burrbull