mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-11 13:01:30 +11:00
pio: Fix marking used instruction space.
This commit is contained in:
parent
2ff9ae156f
commit
959f714fb9
|
@ -229,7 +229,7 @@ impl<P: PIOExt> PIO<P> {
|
|||
self.pio.instr_mem[i + offset].write(|w| unsafe { w.bits(instr as u32) })
|
||||
}
|
||||
self.used_instruction_space =
|
||||
self.used_instruction_space | ((1 << instructions.len()) - 1);
|
||||
self.used_instruction_space | (((1 << p.code.len()) - 1) << offset);
|
||||
Some(offset)
|
||||
} else {
|
||||
None
|
||||
|
|
Loading…
Reference in a new issue