File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 13
13
* serial: Implement embedded-io ` Read ` and ` Write ` traits
14
14
* serial: Rename methods ` read ` -> ` read_byte ` ; ` write ` -> ` write_byte `
15
15
16
+ * rng: Use the ` fill ` method instead of the old ` read ` method
17
+
16
18
## [ v0.15.1] 2023-11-03
17
19
18
20
* Bugfix, usb: On RM0455 and RM0468 parts, PA11/PA12 do not have an alternate function
Original file line number Diff line number Diff line change 7
7
use core:: cmp;
8
8
use core:: mem;
9
9
10
- use crate :: hal:: blocking:: rng;
11
10
use crate :: rcc:: { rec, rec:: RngClkSel } ;
12
11
use crate :: rcc:: { CoreClocks , ResetEnable } ;
13
12
use crate :: stm32:: RNG ;
@@ -116,14 +115,6 @@ impl core::iter::Iterator for Rng {
116
115
}
117
116
}
118
117
119
- impl rng:: Read for Rng {
120
- type Error = ErrorKind ;
121
-
122
- fn read ( & mut self , buffer : & mut [ u8 ] ) -> Result < ( ) , Self :: Error > {
123
- self . fill ( buffer)
124
- }
125
- }
126
-
127
118
macro_rules! rng_core {
128
119
( $( $type: ty) ,+) => {
129
120
$(
You can’t perform that action at this time.
0 commit comments