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

Added CRC peripheral #92

Merged
merged 3 commits into from
Mar 13, 2020
Merged

Added CRC peripheral #92

merged 3 commits into from
Mar 13, 2020

Conversation

korken89
Copy link
Collaborator

This is still a little bit WIP, I will finalize this tomorrow.

@korken89
Copy link
Collaborator Author

Hit the following compiler bug when trying to optimize data into word writes into the CRC peripheral: rust-lang/rust#41775

If anyone has a workaround it'd be appreciated.

@korken89
Copy link
Collaborator Author

Ready for review

@MabezDev
Copy link
Member

LGTM. What are the implications of the compiler bug? Am I right in thinking it only corrupts the debug info for that one function?

@korken89
Copy link
Collaborator Author

@MabezDev Yeah, it corrupts the debug info.
In the end it does not matter, word writes were slower when I found a workaround as one needs to run u32::swap_bytes() on the word which removed the performance gain...

@MabezDev
Copy link
Member

Ah okay. Looks great, won't be able to test on hw, but I trust its all working! :)

@MabezDev MabezDev merged commit 3d157d5 into stm32-rs:master Mar 13, 2020
@korken89 korken89 deleted the add_crc branch March 17, 2020 09:21
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