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

Add ATSAMDA1[EGJ] support #1

Merged
merged 1 commit into from
Aug 30, 2022
Merged

Add ATSAMDA1[EGJ] support #1

merged 1 commit into from
Aug 30, 2022

Conversation

Dridus
Copy link
Member

@Dridus Dridus commented Aug 30, 2022

Summary

Added ATSAMDA1[EGJ] PAC and associated HAL updates

Checklist

  • CHANGELOG.md for the BSP or HAL updated
  • All new or modified code is well documented, especially public items
  • No new warnings or clippy suggestions have been introduced (see CI or check locally)

If Adding a new Board

  • Board CI added to crates.json
  • Board is properly following "Tier 2" conventions, unless otherwise decided to be "Tier 1"

@Dridus Dridus requested a review from sakian August 30, 2022 16:22
@Dridus Dridus self-assigned this Aug 30, 2022
@Dridus
Copy link
Member Author

Dridus commented Aug 30, 2022

intended to fix atsamd-rs#623

Copy link
Collaborator

@sakian sakian left a comment

Choose a reason for hiding this comment

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

Looks like a fun time with features!

unsafe {
// 6 here means: use 64k cycles of OSCULP32k to start up this oscillator
w.startup().bits(6);
}
#[cfg(feature = "samda1")]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Interesting. I wonder why the PACs are different here. Maybe the D21 SVD is an older version?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, there's a few places like that. in some cases it's fresher SVD (e.g. SPIM versus SPI) and in some cases I think it's fresher svd2rust like this case?

@Dridus
Copy link
Member Author

Dridus commented Aug 30, 2022

so much fun with features

@Dridus Dridus merged commit e0af821 into vital-updates Aug 30, 2022
@Dridus Dridus deleted the atsamda1 branch August 30, 2022 17:31
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.

2 participants