rp/pio: mark exec_instr as unsafe

because it most definitely is.
This commit is contained in:
pennae 2023-05-06 17:24:06 +02:00
parent bdcea84ca1
commit 374c7513f9

View file

@ -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