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

Fully Enforced Cordic #144

Merged
merged 6 commits into from
Nov 10, 2024
Merged

Fully Enforced Cordic #144

merged 6 commits into from
Nov 10, 2024

Conversation

AdinAck
Copy link
Contributor

@AdinAck AdinAck commented Nov 8, 2024

With the new from_* register accessor methods, the fully type enforced Cordic implementation can be merged!

fn constrain(self, rcc: &mut Rcc) -> CordicReset;
}

impl Ext for CORDIC {
#[inline]
fn constrain(self, rcc: &mut Rcc) -> CordicReset {
rcc.rb.ahb1enr.modify(|_, w| w.cordicen().set_bit());
rcc.rb.ahb1enr().modify(|_, w| w.cordicen().set_bit());
Copy link
Contributor

Choose a reason for hiding this comment

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

Would you like to add the cordic feature to CI so this will be checked?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, I'm unfamiliar with your CI scheme, is my change correct?

Copy link
Contributor Author

@AdinAck AdinAck Nov 8, 2024

Choose a reason for hiding this comment

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

Haha, it appears it is correct :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks! :)

@usbalbin
Copy link
Contributor

Is it ok if I merge this or do want to add anything more?

@AdinAck
Copy link
Contributor Author

AdinAck commented Nov 10, 2024

This code has been stagnant for months, so I think it's safe to merge :)

Thanks!

@usbalbin usbalbin merged commit 46d44d8 into stm32-rs:staged-pac Nov 10, 2024
38 checks passed
@usbalbin
Copy link
Contributor

Thank you!

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