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