Skip to content

format display_name with dim_indices#187

Merged
VincentDary merged 1 commit intocmsis-svd:mainfrom
ccalmels:display_name_dim
Jan 25, 2024
Merged

format display_name with dim_indices#187
VincentDary merged 1 commit intocmsis-svd:mainfrom
ccalmels:display_name_dim

Conversation

@ccalmels
Copy link
Copy Markdown
Contributor

According to the SVD specification:
https://www.keil.com/pack/doc/CMSIS/SVD/html/elem_registers.html#elem_register, the 'displayName' child element of the register element can also take advantage of the '%s' syntax. The only difference with 'name' is that 'displayName' is optional.
This patch duplicates the logic used by 'name' for 'displayName'. Because it is not clear if 'displayName' must contain '%s' let's handle any error.

@VincentDary VincentDary self-requested a review January 25, 2024 16:05
Comment thread python/cmsis_svd/model.py Outdated
According to the SVD specification:
https://www.keil.com/pack/doc/CMSIS/SVD/html/elem_registers.html#elem_register,
the 'displayName' child element of the register element can also take
advantage of the '%s' syntax. The only difference with 'name' is that
'displayName' is optional.
This patch duplicates the logic used by 'name' for
'displayName'. Because it is not clear if 'displayName' must contain
'%s' let's handle any error.
@VincentDary
Copy link
Copy Markdown
Member

VincentDary commented Jan 25, 2024

@ccalmels Thank's for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants