-
Notifications
You must be signed in to change notification settings - Fork 90
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
feat(PeriphDrivers): Implement low power modes for MAX32657 #1317
base: main
Are you sure you want to change the base?
Conversation
Added standby mode and SRAM retention. Unavailable features are removed. Signed-off-by: Tahsin Mutlugun <[email protected]>
Update wrap_max32_lp.h to accomodate the low power modes of MAX32657. Signed-off-by: Tahsin Mutlugun <[email protected]>
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.
Only semantics.
Thanks for the feedback. Could you be more specific? |
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.
Sorry! Guess I didn't submit my comments with the review. Here is what I meant.
/** | ||
* @brief Enable retention regulator | ||
*/ | ||
void MXC_LP_RetentionRegEnable(void); | ||
|
||
/** | ||
* @brief Disable retention regulator | ||
*/ | ||
void MXC_LP_RetentionRegDisable(void); | ||
|
||
/** | ||
* @brief Is the retention regulator enabled | ||
* | ||
* @return 1 = enabled 0 = disabled | ||
*/ | ||
int MXC_LP_RetentionRegIsEnabled(void); |
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.
Put action verb at the beginning of the function name for tone to be consistent in the rest of the file.
/**
* @brief Enable retention regulator
*/
void MXC_LP_EnableRetentionReg(void);
/**
* @brief Disable retention regulator
*/
void MXC_LP_DisableRetentionReg(void);
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.
MXC_LP_RetentionRegIsEnabled
is fine. Didn't mean to include that function in the review window.
Description
This PR updates MAX32657 low power API as listed below.