mspm0: Fix set_pf_unchecked() assertion
This commit is contained in:
parent
a137a16067
commit
03061a0817
@ -208,8 +208,8 @@ impl<'d> Flex<'d> {
|
|||||||
/// or technical reference manual for additional details.
|
/// or technical reference manual for additional details.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn set_pf_unchecked(&mut self, pf: u8) {
|
pub fn set_pf_unchecked(&mut self, pf: u8) {
|
||||||
// Per SLAU893, PF is only 5 bits
|
// Per SLAU893 and SLAU846B, PF is only 6 bits
|
||||||
assert!((pf & 0x3F) != 0, "PF is out of range");
|
assert_eq!(pf & 0xC0, 0, "PF is out of range");
|
||||||
|
|
||||||
let pincm = pac::IOMUX.pincm(self.pin.pin_cm() as usize);
|
let pincm = pac::IOMUX.pincm(self.pin.pin_cm() as usize);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user