rp/pio: mark exec_instr as unsafe
because it most definitely is.
This commit is contained in:
parent
bdcea84ca1
commit
374c7513f9
1 changed files with 2 additions and 4 deletions
|
@ -790,11 +790,9 @@ impl<'d, PIO: Instance + 'd, const SM: usize> StateMachine<'d, PIO, SM> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn exec_instr(&mut self, instr: u16) {
|
||||
unsafe {
|
||||
pub unsafe fn exec_instr(&mut self, instr: u16) {
|
||||
Self::this_sm().instr().write(|w| w.set_instr(instr));
|
||||
}
|
||||
}
|
||||
|
||||
pub fn rx(&mut self) -> &mut StateMachineRx<'d, PIO, SM> {
|
||||
&mut self.rx
|
||||
|
|
Loading…
Reference in a new issue