Skip to content

Commit

Permalink
eh-1.0.0: rng
Browse files Browse the repository at this point in the history
  • Loading branch information
richardeoin committed Dec 22, 2023
1 parent 0f35ce6 commit c29e9f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* serial: Implement embedded-io `Read` and `Write` traits
* serial: Rename methods `read` -> `read_byte`; `write` -> `write_byte`

* rng: Use the `fill` method instead of the old `read` method

## [v0.15.1] 2023-11-03

* Bugfix, usb: On RM0455 and RM0468 parts, PA11/PA12 do not have an alternate function
Expand Down
9 changes: 0 additions & 9 deletions src/rng.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use core::cmp;
use core::mem;

use crate::hal::blocking::rng;
use crate::rcc::{rec, rec::RngClkSel};
use crate::rcc::{CoreClocks, ResetEnable};
use crate::stm32::RNG;
Expand Down Expand Up @@ -116,14 +115,6 @@ impl core::iter::Iterator for Rng {
}
}

impl rng::Read for Rng {
type Error = ErrorKind;

fn read(&mut self, buffer: &mut [u8]) -> Result<(), Self::Error> {
self.fill(buffer)
}
}

macro_rules! rng_core {
($($type:ty),+) => {
$(
Expand Down

0 comments on commit c29e9f9

Please sign in to comment.