mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
fix masking bug in iox implementation
This commit is contained in:
parent
34489d5f94
commit
436be7ae9c
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ impl Iox {
|
||||||
let oe_ptr = self.csr.base();
|
let oe_ptr = self.csr.base();
|
||||||
IoxValue::from(
|
IoxValue::from(
|
||||||
oe_ptr.add(iox::SFR_GPIOIN_SRGI0.offset() + port as usize).read_volatile()
|
oe_ptr.add(iox::SFR_GPIOIN_SRGI0.offset() + port as usize).read_volatile()
|
||||||
& !(1u32 << (pin as u32)),
|
& (1u32 << (pin as u32)),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue