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(Other): Zephyr: MAX32660: add compat wrappers #1336

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mattsm
Copy link
Contributor

@mattsm mattsm commented Feb 5, 2025

Some defines and structs are different so reconcile these here

@github-actions github-actions bot added the Zephyr MSDK Zephyr related change. label Feb 5, 2025
@mattsm mattsm force-pushed the fix_max32660_defines branch from 4f0e4c2 to 82dad15 Compare February 5, 2025 16:45
@mattsm mattsm changed the title fix(Other): zephyr: MAX32660: add compat wrappers fix(Other): Zephyr: MAX32660: add compat wrappers Feb 5, 2025
@mattsm mattsm force-pushed the fix_max32660_defines branch from 82dad15 to a7cd270 Compare February 5, 2025 17:17
Some defines and structs are different so reconcile these here

Signed-off-by: Matthew McClintock <[email protected]>
@mattsm mattsm force-pushed the fix_max32660_defines branch from a7cd270 to 0a34a87 Compare February 7, 2025 17:47
@yasinustunerg
Copy link
Contributor

I have similar kind of PR for MAX32650 at #1337.

The reviewers said that do not use MXC type macro on wrapper files. Use ADI macro if you can or change the macro file directly at *_regs.h (e.g uart_regs.h). Please review the other PR. If MXC type macro is used directly at zephyr drivers (and the board doesnt have that macro), replace the MXC macro with ADI macro on zephyr drivers and add to the wrapper file.

${MSDK_PERIPH_SRC_DIR}/FLC
${MSDK_PERIPH_SRC_DIR}/GPIO
${MSDK_PERIPH_SRC_DIR}/I2C
${MSDK_PERIPH_SRC_DIR}/I2S
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
${MSDK_PERIPH_SRC_DIR}/I2S
${MSDK_PERIPH_SRC_DIR}/SPIMSS

if (CONFIG_I2S_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/I2S/i2s_me11.c
${MSDK_PERIPH_SRC_DIR}/I2S/i2s_reva.c
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
${MSDK_PERIPH_SRC_DIR}/I2S/i2s_reva.c
${MSDK_PERIPH_SRC_DIR}/SPIMSS/i2s_reva.c


if (CONFIG_I2S_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/I2S/i2s_me11.c
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
${MSDK_PERIPH_SRC_DIR}/I2S/i2s_me11.c
${MSDK_PERIPH_SRC_DIR}/SPIMSS/i2s_me11.c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Zephyr MSDK Zephyr related change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants