chiptool icon indicating copy to clipboard operation
chiptool copied to clipboard

RenameEnumVariants should allow specifying the value of the variant to rename.

Open i509VCB opened this issue 5 months ago • 1 comments

The i.MXRT1011 SVDs unfortunately have enums which define two variants with the same name. For example:

Image

This of course results in a compilation error:

Image

i509VCB avatar Jul 05 '25 21:07 i509VCB

makes sense 👍

another possible improvement is making generation tolerate duplicate variant names, for example in this case autorenaming the second one as TRISTATED_2

Dirbaio avatar Jul 06 '25 18:07 Dirbaio