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

feat(Other): Add zephyr CAN wrapper for MAX32662, MAX32690 #1306

Merged

Conversation

trupples
Copy link
Contributor

@trupples trupples commented Dec 18, 2024

Description

The MSDK API for MXC_CAN_Init differs between the MAX32662 and MAX32690 boards. The former expects an additional GPIO configuration parameter. In Zephyr, because GPIO config is done by the zephyr layer and not msdk, this parameter is unused anyways (see MSDK_NO_GPIO_CLK_INIT).

This PR adds a Wrap_MXC_CAN_Init function to allow the can_max32 driver (currently only available via innersource) to work on the MAX32662 as well (it currently only supports MAX32690). This seems to be the only tweak required to support this board.

I have tested that this properly works with a basic CAN send-recv example on a MAX32662 board and that it builds successfully for the MAX32690.

Checklist Before Requesting Review

  • PR Title follows correct guidelines.
  • Description of changes and all other relevant information.

@github-actions github-actions bot added the Zephyr MSDK Zephyr related change. label Dec 18, 2024
@sihyung-maxim sihyung-maxim merged commit 4978095 into analogdevicesinc:main Dec 19, 2024
14 checks passed
@trupples
Copy link
Contributor Author

trupples commented Dec 20, 2024

It seems that the actions triggered by this PR being merged didn't run successfully - they were cancelled when #1305 was merged seconds later, and its actions took priority. Would it be possible for a maintainer to re-run this PR's workflows?

Actions / Workflow runs that got cancelled:

It also looks like the same thing happened with PR #1307, which got cancelled by this one.

@trupples
Copy link
Contributor Author

Nevermind, I didn't notice that the files were indeed copied to hal_adi by the latest run, even if from another PR.

EricB-ADI pushed a commit that referenced this pull request Jan 6, 2025
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