Skip to content

Omit mask name suffix from firmware group masks#115

Merged
glopesdev merged 1 commit intoharp-tech:mainfrom
glopesdev:firmware-mask-suffix
Mar 22, 2026
Merged

Omit mask name suffix from firmware group masks#115
glopesdev merged 1 commit intoharp-tech:mainfrom
glopesdev:firmware-mask-suffix

Conversation

@glopesdev
Copy link
Copy Markdown
Contributor

@glopesdev glopesdev commented Mar 22, 2026

Firmware mask names cannot clash with register names so a suffix is currently required.

If the common Mask suffix is used, the generators will drop the suffix word from firmware definition names. Since enum classes are not available in C we already have to use a differentiating prefix (GM_), so there is no name clash and no need for the redundant suffix.

Firmware naming convention functions were also refactored into the common helper class to ease future maintenance revisions.

Closes #113

@glopesdev glopesdev requested a review from a team March 22, 2026 08:19
@glopesdev glopesdev added the feature New planned feature label Mar 22, 2026
Firmware mask names cannot clash with register names so a suffix is
currently required.

If the common Mask suffix is used, it will be dropped from firmware
definitions since enum classes are not available in C and therefore no
name clash exists.

Refactored firmware naming convention functions into common helper
class.
@glopesdev glopesdev force-pushed the firmware-mask-suffix branch from 38925af to 68df6cf Compare March 22, 2026 08:47
@glopesdev glopesdev merged commit 483eb25 into harp-tech:main Mar 22, 2026
9 checks passed
@glopesdev glopesdev deleted the firmware-mask-suffix branch March 22, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New planned feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider adding a "Register" suffix to interface class names

1 participant