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(PeriphDrivers, CMSIS): Fix build warnings and errors #9

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

ttmut
Copy link
Contributor

@ttmut ttmut commented Oct 10, 2024

This PR addresses below issues.

  1. Build tests on MAX32672 boards fail due to redefinition warnings: max32672 cpp build errors in weekly full twister run zephyr#79283
  2. Shutdown mode function is declared as MXC_LP_EnterShutDownMode however it is implemented as MXC_LP_EnterPowerDownMode for MAX32662. This could cause undefined reference errors.

Shutdown function is defined as MXC_LP_EnterShutDownMode lp.h however it
is implemented as MXC_LP_EnterPowerDownMode.

Signed-off-by: Tahsin Mutlugun <[email protected]>
Remove inclusion of trimsir_regs.h and aes_regs.h from max32672.h. They
may cause redefinition warnings for __I macro.

Signed-off-by: Tahsin Mutlugun <[email protected]>
@EricB-ADI
Copy link

What was fixed to resolve the redefinition warnings? This is happening in the MSDK too, and it is not obvious what changed.

@ttmut
Copy link
Contributor Author

ttmut commented Oct 11, 2024

What was fixed to resolve the redefinition warnings? This is happening in the MSDK too, and it is not obvious what changed.

I think the order of inclusions was causing the error. __I is defined in both xxx_regs.h and core_cm4.h. core_cm4.h does not check if __I is already defined so redefinition warnings pop up. Though I am not sure why this is only an issue with cpp builds.

Copy link
Member

@MaureenHelm MaureenHelm left a comment

Choose a reason for hiding this comment

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

@MaureenHelm MaureenHelm merged commit a3eecfd into zephyrproject-rtos:main Oct 14, 2024
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.

3 participants