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

Impl multiplication and division for frequency wrappers #193

Merged
merged 1 commit into from
Apr 9, 2020

Conversation

dbrgn
Copy link
Contributor

@dbrgn dbrgn commented Mar 10, 2020

This allows the following operations:

  • T * u32 (T)
  • T *= u32 (T)
  • T / u32 (T)
  • T /= u32 (T)
  • T / T (u32)

It's implemented for the following types:

  • Hertz
  • KiloHertz
  • MegaHertz
  • Bps

@TheZoq2
Copy link
Member

TheZoq2 commented Mar 27, 2020

Sorry for the delay. Looks like a good change to me! Would you mind also adding an entry to CHANGELOG.md about it?

@therealprof
Copy link
Member

Ping @dbrgn, any chance to getting the request @TheZoq2 addressed?

This allows the following operations:

- T * u32 (T)
- T *= u32 (T)
- T / u32 (T)
- T /= u32 (T)
- T / T (u32)
@dbrgn
Copy link
Contributor Author

dbrgn commented Apr 8, 2020

Ping @dbrgn, any chance to getting the request @TheZoq2 addressed?

Yes, sure! Sorry, I somehow missed that comment.

PR is updated and rebased.

@TheZoq2
Copy link
Member

TheZoq2 commented Apr 9, 2020

Thanks!

@TheZoq2 TheZoq2 merged commit 1cb9a17 into stm32-rs:master Apr 9, 2020
@dbrgn dbrgn deleted the frequency-mul-div branch April 9, 2020 07:40
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.

None yet

3 participants