rp/pio: mark exec_instr as unsafe
because it most definitely is.
This commit is contained in:
parent
bdcea84ca1
commit
374c7513f9
@ -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 New Issue
Block a user