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: Changes to the dmac public API #764

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

jbeaurivage
Copy link
Contributor

@jbeaurivage jbeaurivage commented Oct 1, 2024

Summary

I noticed that there were a few mistakes in the public API of the dmac module. Some things were missing, and some others were publicly exposed when they shouldn't.

  • Remove BlockTransferControl and DmacDescriptor structs from the public API
  • Add getters/setters for level0, level1, level2 and level3 for PriorityLevelMask and RoundRobinMask structs

@jbeaurivage jbeaurivage force-pushed the dmac-api branch 2 times, most recently from 370449c to c5c960d Compare October 18, 2024 20:39
@jbeaurivage jbeaurivage changed the title fix!: Changes to the dmac public API fix: Changes to the dmac public API Oct 19, 2024
@jbeaurivage
Copy link
Contributor Author

Now that I think about it, I don't think any of the changes in this PR are breaking. The BlockTransferControl and DmacDescriptor structs, and the const DEFAULT_DESCRIPTOR were all #[doc(hidden)], which explicitly excludes them from the publiic API. Making them private now isn't breaking.

* Remove `BlockTransferControl` and `DmacDescriptor`
structs from the API
* Add getters/setters for level0, level1, level2
and level3 for `PriorityLevelMask` and `RoundRobinMask`
structs
@sajattack sajattack merged commit edaa594 into atsamd-rs:master Oct 25, 2024
108 checks passed
@jbeaurivage jbeaurivage deleted the dmac-api branch October 25, 2024 02:16
@jbeaurivage jbeaurivage mentioned this pull request Oct 25, 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.

2 participants