File tree 4 files changed +5
-7
lines changed
4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " stm32-hal2"
3
- version = " 1.8.1 "
3
+ version = " 1.8.2 "
4
4
authors = [" David O'Connor <david.alan.oconnor@gmail.com>" ]
5
5
description = " Hardware abstraction layer for the STM32 MCUs"
6
6
keywords = [" no-std" , " stm32" , " embedded" , " embedded-hal" ]
Original file line number Diff line number Diff line change @@ -665,9 +665,8 @@ impl Clocks {
665
665
666
666
// todo: Add config enums for these, and add them as Clocks fields.
667
667
#[ cfg( not( any( feature = "h7b3" , feature = "h5" ) ) ) ]
668
- rcc. d2ccip2r . modify ( |_, w| unsafe {
669
- w. usbsel ( ) . bits ( self . usb_src as u8 )
670
- } ) ;
668
+ rcc. d2ccip2r
669
+ . modify ( |_, w| unsafe { w. usbsel ( ) . bits ( self . usb_src as u8 ) } ) ;
671
670
672
671
#[ cfg( not( any( feature = "h7b3" , feature = "h5" ) ) ) ]
673
672
rcc. d3ccipr . modify ( |_, w| unsafe {
Original file line number Diff line number Diff line change @@ -74,4 +74,3 @@ pub fn reading_ready() -> bool {
74
74
let regs = unsafe { & ( * RNG :: ptr ( ) ) } ;
75
75
regs. sr . read ( ) . drdy ( ) . bit_is_set ( )
76
76
}
77
-
Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ where
243
243
244
244
// Continue filling write FIFO and emptying read FIFO
245
245
for word in write {
246
- let _ = self . exchange_duplex ( * word) ;
246
+ let _ = self . exchange ( * word) ;
247
247
}
248
248
249
249
// Dummy read from the read FIFO
@@ -269,7 +269,7 @@ where
269
269
for i in FIFO_LEN ..len + FIFO_LEN {
270
270
if i < len {
271
271
// Continue filling write FIFO and emptying read FIFO
272
- let read_value = self . exchange_duplex ( words[ i] ) ?;
272
+ let read_value = self . exchange ( words[ i] ) ?;
273
273
274
274
words[ i - FIFO_LEN ] = read_value;
275
275
} else {
You can’t perform that action at this time.
0 commit comments