mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-11 04:51:31 +11:00
Add accessor for installed pio program offset (#355)
This commit is contained in:
parent
ed7148a1e7
commit
9bce594db2
|
@ -301,6 +301,11 @@ impl<P: PIOExt> InstalledProgram<P> {
|
||||||
self.offset + self.wrap.target
|
self.offset + self.wrap.target
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get the offset the program is installed at.
|
||||||
|
pub fn offset(&self) -> u8 {
|
||||||
|
self.offset
|
||||||
|
}
|
||||||
|
|
||||||
/// Clones this program handle so that it can be executed by two state machines at the same
|
/// Clones this program handle so that it can be executed by two state machines at the same
|
||||||
/// time.
|
/// time.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue