Skip to content

Commit 2d92eb3

Browse files
committed
Use dedicated method instead of hardcoded value
Prefer the use of tm4c123 crate's methods instead of hardcoded values when writing in some registers.
1 parent 6093342 commit 2d92eb3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tm4c123x-hal/src/spi.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,8 @@ macro_rules! hal {
130130
spi.cr0.modify(|_,w| unsafe {
131131
w.spo().bit(mode.polarity == Polarity::IdleHigh)
132132
.sph().bit(mode.phase == Phase::CaptureOnSecondTransition)
133-
// FIXME: How to use FRFR::MOTO and DSS:: ?
134-
.frf().bits(0)
135-
.dss().bits(0x7)
133+
.frf().moto()
134+
.dss()._8()
136135
.scr().bits(scr)
137136
});
138137

0 commit comments

Comments
 (0)