Skip to content

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!

#[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
Member

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
Member

Choose a reason for hiding this comment

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

Thanks! :)

@usbalbin
Copy link
Member

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
Member

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