-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(PeriphDrivers)!: Update WUT API naming schemes for MAX32655, MAX32657, MAX32665, MAX32690, MAX78000, and MAX78002. Offer WUT selection on MAX32690 #1291
Conversation
…election. Deprecating MXC_WUT_IntClear(void)
…in favor of MXC_WUT_ClearFlags for an updated naming scheme
/clang-format-run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Core changes look good.
This comment was marked as resolved.
This comment was marked as resolved.
…, and Count(), marking them as deprecated on other devices
The PR description has been updated to account for the ME18 not having functions marked as deprecated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Adding @EricB-ADI @kevin-gillespie so they could be aware of these changes. As Cristian mentioned, the breaking change is only with the ME18. |
Description
The MAX32690's WUT functions perform operations using a single instance of the wake-up timer. However, the max32690.h file shows that there are two instances. This can be confirmed in section 24.1 of the device User Guide.
This is a breaking change as the function prototypes and signatures have been modified to offer a
mxc_wut_regs_t *wut
selection as an argument instead of defaulting to a single WUT instance.Deprecation
In favor of the
[action][verb]()
naming scheme for functions, the following functions are being marked as deprecated and updated with a new name:MXC_WUT_IntClear()
is being replaced byMXC_WUT_ClearFlags()
.MXC_WUT_IntStatus()
is being replaced byMXC_WUT_GetFlags()
.MXC_WUT_Edge()
is being replaced byMXC_WUT_WaitForEdge()
.MXC_WUT_Store()
is being replaced byMXC_WUT_StoreCount()
.Note: Unlike the other impacted devices, the MAX32690 will not have old functions marked as deprecated. Instead, these will be updated to their new names immediately as part of the breaking change, due to additional function argument.
Checklist Before Requesting Review