File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ macro_rules! hal {
110
110
// SSI: set nss high = master mode
111
111
// CRCEN: hardware CRC calculation disabled
112
112
// BIDIMODE: 2 line unidirectional (full duplex)
113
- spi. cr1. write( |w|
113
+ spi. cr1. write( |w| unsafe {
114
114
w. cpha( )
115
115
. bit( mode. phase == Phase :: CaptureOnSecondTransition )
116
116
. cpol( )
@@ -131,7 +131,7 @@ macro_rules! hal {
131
131
. clear_bit( )
132
132
. bidimode( )
133
133
. clear_bit( )
134
- ) ;
134
+ } ) ;
135
135
136
136
Spi { spi, pins }
137
137
}
@@ -193,7 +193,7 @@ macro_rules! hal {
193
193
where F : Into <Hertz >
194
194
{
195
195
self . spi. cr1. modify( |_, w| w. spe( ) . clear_bit( ) ) ;
196
- self . spi. cr1. modify( |_, w| {
196
+ self . spi. cr1. modify( |_, w| unsafe {
197
197
w. br( ) . bits( Self :: compute_baud_rate( clocks. $pclkX( ) , freq. into( ) ) ) ;
198
198
w. spe( ) . set_bit( )
199
199
} ) ;
You can’t perform that action at this time.
0 commit comments