mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-11 13:01:30 +11:00
Keep old function as a deprecated alternative, for now
Mainly so i2c-pio-rs doesn't fail, as it is used by examples. Should be removed once i2c-pio-rs is updated.
This commit is contained in:
parent
3756cd2fb5
commit
aafa3dd587
|
@ -519,6 +519,12 @@ impl<SM: ValidStateMachine, State> StateMachine<SM, State> {
|
||||||
self.sm.sm().sm_addr.read().bits()
|
self.sm.sm().sm_addr.read().bits()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[deprecated(note = "Renamed to exec_instruction")]
|
||||||
|
///Execute the instruction immediately.
|
||||||
|
pub fn set_instruction(&mut self, instruction: u16) {
|
||||||
|
self.exec_instruction(instruction);
|
||||||
|
}
|
||||||
|
|
||||||
///Execute the instruction immediately.
|
///Execute the instruction immediately.
|
||||||
pub fn exec_instruction(&mut self, instruction: u16) {
|
pub fn exec_instruction(&mut self, instruction: u16) {
|
||||||
// This is allowed even if the state machine is running.
|
// This is allowed even if the state machine is running.
|
||||||
|
|
Loading…
Reference in a new issue