Skip to content
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

fix(CMSIS): Fix AFE_ADC_n_CTRL.ref_sel enum fields and remove deprecated registers #1069

Merged
merged 7 commits into from
Sep 24, 2024

Conversation

sihyung-maxim
Copy link
Contributor

Description

Fixes the AFE_ADC_n_CTRL.ref_sel enumerated fields.

Remove deprecated registers.

Fix #737

Checklist Before Requesting Review

  • PR Title follows correct guidelines.
  • Description of changes and all other relevant information.
  • (Optional) Link any related GitHub issues using a keyword
  • (Optional) Provide info on any relevant functional testing/validation. For API changes or significant features, this is not optional.

@github-actions github-actions bot added MAX32675 Related to the MAX32675 (ME16) MAX32680 Related to the MAX32680 (ME20) Register Change This issue or pull request involves a change to the MSDK registers. labels Jul 2, 2024
Copy link

github-actions bot commented Aug 7, 2024

This pull request is stale because it has been open for 30 days with no activity. Remove stale label, commit, or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale This issue or pull request is stale. label Aug 7, 2024
@sihyung-maxim sihyung-maxim removed the stale This issue or pull request is stale. label Aug 12, 2024
Copy link

This pull request is stale because it has been open for 30 days with no activity. Remove stale label, commit, or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale This issue or pull request is stale. label Sep 11, 2024
@sihyung-maxim sihyung-maxim removed the stale This issue or pull request is stale. label Sep 17, 2024
@sihyung-maxim sihyung-maxim requested review from lorne-maxim and jdk-maxim and removed request for lorne-maxim September 23, 2024 20:41
@sihyung-maxim
Copy link
Contributor Author

This PR has been hanging for a while. This corrects the names and values of the affected register definitions.

@jdk-maxim
Copy link
Contributor

jdk-maxim commented Sep 23, 2024 via email

Copy link
Contributor

@jdk-maxim jdk-maxim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed. Slight issue with REV_ID on MAX32680. Otherwise approved.

@@ -563,7 +563,7 @@ extern "C" {
* @{
*/
#define MXC_F_AFE_ADC_ZERO_PART_ID_REV_ID_POS 0 /**< PART_ID_REV_ID Position */
#define MXC_F_AFE_ADC_ZERO_PART_ID_REV_ID ((uint32_t)(0x7UL << MXC_F_AFE_ADC_ZERO_PART_ID_REV_ID_POS)) /**< PART_ID_REV_ID Mask */
#define MXC_F_AFE_ADC_ZERO_PART_ID_REV_ID ((uint32_t)(0x3FUL << MXC_F_AFE_ADC_ZERO_PART_ID_REV_ID_POS)) /**< PART_ID_REV_ID Mask */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this looks right. Its only changed for 680 and only in this header file. The svd is not updated to match either, so this is likely a mistake.

Copy link
Contributor Author

@sihyung-maxim sihyung-maxim Sep 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, fixed the SVD and updated the ME16's PART_ID register. However, I think we're dropping support for the ME20, so I will leave the ME20 files as they* are to match the UG.

@sihyung-maxim sihyung-maxim merged commit ace41b2 into main Sep 24, 2024
9 checks passed
@sihyung-maxim sihyung-maxim deleted the fix/737 branch September 24, 2024 19:54
sihyung-maxim pushed a commit to analogdevicesinc/hal_adi that referenced this pull request Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MAX32675 Related to the MAX32675 (ME16) MAX32680 Related to the MAX32680 (ME20) Register Change This issue or pull request involves a change to the MSDK registers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MAX32675: wrong bit settings in afe_adc_zero_regs.h for ref_sel
2 participants