Refactoring: use set_bits() in set_fs function
This commit is contained in:
parent
5ef90e3189
commit
9bb3b5803c
|
@ -183,7 +183,6 @@ pub unsafe fn set_mpp(mpp: MPP) {
|
|||
#[inline]
|
||||
pub unsafe fn set_fs(fs: FS) {
|
||||
let mut value = _read();
|
||||
value &= !(0b11 << 13);
|
||||
value |= (fs as usize) << 13;
|
||||
value.set_bits(13..15, fs as usize);
|
||||
_write(value);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue